@krisdages/gulp-aurelia-template-lint

0.9.1 • Public • Published

gulp-aurelia-template-lint

logo

Wrap of aurelia-template-lint as a simple gulp plugin in order to sanity check html

NPM version NPM downloads Travis Status

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

Package Sidebar

Install

npm i @krisdages/gulp-aurelia-template-lint

Weekly Downloads

1

Version

0.9.1

License

(Apache-2.0)

Unpacked Size

23.9 kB

Total Files

19

Last publish

Collaborators

  • krisdages