Move tasks to separate files and simplify
This commit is contained in:
parent
dde26ec45e
commit
06ba111392
12 changed files with 1560 additions and 1030 deletions
13
gulp/tasks/validate.js
Normal file
13
gulp/tasks/validate.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const { src } = require('gulp');
|
||||
const config = require('../config');
|
||||
const plumber = require('../modules/plumber');
|
||||
const htmlValidator = require('gulp-w3c-html-validator');
|
||||
|
||||
function validate() {
|
||||
return src(config.dev + '**/*.html')
|
||||
.pipe(plumber())
|
||||
.pipe(htmlValidator())
|
||||
.pipe(htmlValidator.reporter());
|
||||
}
|
||||
|
||||
module.exports = validate;
|
||||
Loading…
Add table
Add a link
Reference in a new issue