gulp-rb-validate-html
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -254,3 +254,3 @@ /*jslint node: true*/ | ||
if (!str) { | ||
validationError('', 'File is empty or null', 'WARNING', false); | ||
validationError('', 'File is empty or null', 'CI-FE-WARNING', false); | ||
} else { | ||
@@ -257,0 +257,0 @@ |
{ | ||
"name": "gulp-rb-validate-html", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Gulp plugin to validate HTML files according to Web Frontend Guidelines", | ||
@@ -14,3 +14,12 @@ "main": "index.js", | ||
], | ||
"author": "Diana Salsa", | ||
"contributors": [ | ||
{ | ||
"name": "Diana Salsa", | ||
"email": "fixed-term.Diana.Salsa@de.bosch.com" | ||
}, | ||
{ | ||
"name": "Luis Amoroso", | ||
"email": "luis.amoroso@de.bosch.com" | ||
} | ||
], | ||
"license": "LicenseRef-LICENSE", | ||
@@ -17,0 +26,0 @@ "dependencies": { |
@@ -22,2 +22,16 @@ #Installation | ||
#### Multiple Filepath Patterns | ||
```js | ||
var rbhtml = require('gulp-rb-validate-html'); | ||
gulp.task('rb-validate', function () { | ||
gulp.src(['./src/*.html', './src/app/**/*.html'], | ||
{ base: './src/' }) | ||
.pipe(rbhtml()); | ||
}); | ||
``` | ||
#### With Parameter | ||
@@ -32,3 +46,3 @@ | ||
.pipe(rbhtml({ | ||
abortOnError: true, | ||
exitOnError: true, | ||
indent: '\t', | ||
@@ -44,3 +58,3 @@ checkremote: false, | ||
#### abortOnError: Boolean (Default: false) | ||
#### exitOnError: Boolean (Default: false) | ||
@@ -47,0 +61,0 @@ This will cause the plugin to abort with exit code 1 as soon as an error with obligation level red is found |
11628
74