@krisdages/gulp-aurelia-template-lint
v0.9.1
Published
gulp plugin to sanity check template html
Downloads
3
Maintainers
Readme
gulp-aurelia-template-lint
Wrap of aurelia-template-lint as a simple gulp plugin in order to sanity check html
Install
Note: node.js 6 is required. There is currently an issue in trying to install some aurelia dependencies in node.js 4.
npm install gulp-aurelia-template-lint --save-dev
Usage
var gulp = require('gulp');
var linter = require('gulp-aurelia-template-lint');
var config = new (require('aurelia-template-lint').Config);
config.obsoleteTagOpts.push({tag:"my-old-tag"});
/// opt-in to static type checks:
//config.useRuleAureliaBindingAccess = true;
//config.reflectionOpts.sourceFileGlob = "src/**/*.ts";
gulp.task('default', function () {
return gulp.src('**/*.html')
.pipe(linter())
.pipe(gulp.dest('output'));
});
gulp.task('with-custom-config', function () {
return gulp.src('**/*.html')
.pipe(linter(config))
.pipe(gulp.dest('output'));
});
gulp.task('with-custom-reporter', function () {
return gulp.src('**/*.html')
.pipe(linter(config, (error, file)=>{}))
.pipe(gulp.dest('output'));
});
##Icon
Icon courtesy of The Noun Project