gulp
gulp-jslintでエラーを表示する
サーチ…
インストールと使用
インストール
$ npm install gulp-jslint --save-dev
使用法
gulpfile.jsに次の行を追加します。
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' ));
});
このタスクを使用するには:
$ ./node_modules/gulp/bin/gulp.js lint
Modified text is an extract of the original Stack Overflow Documentation
ライセンスを受けた CC BY-SA 3.0
所属していない Stack Overflow