gulp-angular-htmlify
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "gulp-angular-htmlify", | ||
"description": "Change your ng-attributes to data-ng-attributes for html5 validation", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"engines": { | ||
@@ -16,3 +16,3 @@ "node": ">=0.10.0" | ||
"scripts": { | ||
"watchTest": "mocha --watch", | ||
"watchTest": "mocha -R spec --watch", | ||
"test": "mocha" | ||
@@ -19,0 +19,0 @@ }, |
# [gulp](https://github.com/wearefractal/gulp)-angular-htmlify | ||
> Change your ng-attributes to data-ng-attributes for html5 validation | ||
> Change your ng-attributes to data-ng-attributes for HTML5 validation | ||
@@ -10,7 +10,7 @@ [![NPM Version](http://img.shields.io/npm/v/gulp-angular-htmlify.svg)](https://npmjs.org/package/gulp-angular-htmlify) | ||
Ever tried to run an Angular html page into w3c validator? Yeah it's a mess. | ||
Ever tried to run an Angular HTML page into w3c validator? Yeah it's a mess. | ||
The solution everyone recommends is to add `data` to all your `ng` directives. | ||
Now with `gulp` this can be easily made part of your build flow, similar to how | ||
ng-min is to creating minfiable Angular syntax. | ||
ng-min is to creating minifiable Angular syntax. | ||
@@ -36,3 +36,3 @@ **Turn this:** | ||
**gulp-angular-htmlify** currently handles the following cases: | ||
**gulp-angular-htmlify** looks for `ng-` directives by default and can handle the following cases: | ||
```html | ||
@@ -51,2 +51,6 @@ <!-- attribute --> | ||
You can add additional prefixes using the option `customPrefixes`. | ||
This plugin plays nice with `type="text/ng-template"` and won't break it. | ||
## Install | ||
@@ -77,3 +81,3 @@ | ||
params is an object that contains the following settings: | ||
`params` is an object that contains the following settings: | ||
@@ -88,4 +92,6 @@ #### customPrefixes | ||
*Note: for this to work - you will need to make sure your directives **can** load with a `data-` prefix.* | ||
By default only `ng-` prefixes are are handled. Any items you add here will be handled as well. | ||
*Note: for this to work - you will need to make sure your directives can load with a `data-` prefix.* | ||
Defaults to **[]** | ||
@@ -92,0 +98,0 @@ |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
116
3847
2
0
1