gulp
गल-ज्सलिंट के साथ त्रुटियां दिखाएं
खोज…
स्थापना और उपयोग
स्थापना
$ 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