Suche…


Installation und Verwendung

Installation

$ npm install gulp-jslint --save-dev

Verwendungszweck

In gulpfile.js hinzufügen:

var gulp = require('gulp');
var jslint = require('gulp-jslint');

gulp.task('lint', function(){
    return gulp.src(['source.js'])
        .pipe(jslint({ /* this object represents the JSLint directives being passed down */ }))
        .pipe(jslint.reporter( 'my-reporter' ));
});

für diese Aufgabe verwenden:

$ ./node_modules/gulp/bin/gulp.js lint


Modified text is an extract of the original Stack Overflow Documentation
Lizenziert unter CC BY-SA 3.0
Nicht angeschlossen an Stack Overflow