html-test
Version:
Node.js library for testing HTML files on the fly and output errors in the console with Gulp.js compatibilities
20 lines (13 loc) • 374 B
JavaScript
import gulp from 'gulp';
const { parallel, watch } = gulp;
import htmlTest from './index.js';
const htmlTestRes = () =>
htmlTest('./html/**/*.html', { ignore: ['html/ignore-me/**', 'node_modules/**'], hide: ['js-literals', 'handlebars']});
const watcher = () => {
watch('./html/*.html', htmlTestRes);
};
export default
parallel(
htmlTestRes,
watcher
)