gulp-aurelia-template-lint

gulp plugin to sanity check template html

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-aurelia-template-lint
700.9.18 years ago8 years agoMinified + gzip package size for gulp-aurelia-template-lint in KB

Readme

gulp-aurelia-template-lint
logo Wrap of aurelia-template-lint as a simple gulp plugin in order to sanity check html !NPM versionnpm-imagenpm-url !NPM downloadsnpm-downloadsnpm-url !Travis Statustravis-imagetravis-url

Install

Note: node.js 5 or 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