0.9.1 • Published 9 years ago

gulp-aurelia-template-lint v0.9.1

Weekly downloads
72
License
(Apache-2.0)
Repository
github
Last release
9 years ago

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 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

0.9.1

9 years ago

0.10.0

9 years ago

0.9.0

9 years ago

0.8.0

9 years ago

0.7.3

9 years ago

0.7.2

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago