gulp
Fouten weergeven met gulp-jslint
Zoeken…
Installatie en gebruik
Installatie
$ npm install gulp-jslint --save-dev
Gebruik
In gulpfile.js toevoegen:
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' ));
});
voor gebruik deze taak:
$ ./node_modules/gulp/bin/gulp.js lint
Modified text is an extract of the original Stack Overflow Documentation
Licentie onder CC BY-SA 3.0
Niet aangesloten bij Stack Overflow