gulp
Mostrar errores con gulp-jslint
Buscar..
Instalación y uso
Instalación
$ npm install gulp-jslint --save-dev
Uso
En gulpfile.js añadir:
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' ));
});
para utilizar esta tarea:
$ ./node_modules/gulp/bin/gulp.js lint
Modified text is an extract of the original Stack Overflow Documentation
Licenciado bajo CC BY-SA 3.0
No afiliado a Stack Overflow