gulp-angular-htmlify
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -6,3 +6,2 @@ 'use strict'; | ||
module.exports = function (params) { | ||
//perhaps in the future | ||
params = params || {}; | ||
@@ -9,0 +8,0 @@ var verbose = Boolean(params.verbose); |
{ | ||
"name": "gulp-angular-htmlify", | ||
"description": "Change your ng-attributes to data-ng-attributes for html5 validation", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"engines": { | ||
@@ -42,3 +42,3 @@ "node": ">=0.10.0" | ||
"dependencies": { | ||
"angular-html5": "^0.1.1", | ||
"angular-html5": "^0.2.0", | ||
"gulp-util": "^3.0.0", | ||
@@ -45,0 +45,0 @@ "through2": "^0.5.1" |
@@ -68,2 +68,3 @@ # [gulp](https://github.com/wearefractal/gulp)-angular-htmlify | ||
//simple usage | ||
gulp.task('htmlify', function() { | ||
@@ -74,2 +75,19 @@ gulp.src('public/**/*.html') | ||
}); | ||
//using jade as a pre-processer | ||
gulp.task('htmlify', function() { | ||
gulp.src('partials/**/*.jade') | ||
.pipe(jade()) | ||
.pipe(htmlify()) | ||
.pipe(gulp.dest('build/')); | ||
}); | ||
//Also transforming ui-attributes to data-ui-attributes | ||
gulp.task('htmlify', function() { | ||
gulp.src('public/**/*.html') | ||
.pipe(htmlify({ | ||
customPrefixes: ['ui-'] | ||
})) | ||
.pipe(gulp.dest('build/')); | ||
}); | ||
``` | ||
@@ -87,2 +105,4 @@ | ||
Default: `[]` | ||
An array to optionally add custom prefixes to the list of converted directives. | ||
@@ -96,4 +116,2 @@ | ||
Defaults to `[ ]` | ||
#### verbose | ||
@@ -103,6 +121,6 @@ | ||
Default: `false` | ||
Whether to log files that had ng-directives detected and replaced. (Useful for debugging). | ||
Defaults to **false**. | ||
Example usage: | ||
@@ -109,0 +127,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6733
135
34
+ Addedangular-html5@0.2.0(transitive)
- Removedangular-html5@0.1.1(transitive)
Updatedangular-html5@^0.2.0