Package | gulp-jscs-custom |
Description | Gulp plugin for JSCS with custimizable reporters, including Jenkins-friendly Checkstyle. You can output files too. |
Node Version | >= 0.4 |
npm install gulp-jscs-custom --save-dev
var gulp = require('gulp'),
jscs = require('gulp-jscs-custom');
gulp.task('checkstyle', function () {
return gulp.src('./**/*.js')
.pipe(jscs({
esnext: false,
configPath: '.jscsrc',
reporter: 'checkstyle',
filePath: './jscs.xml'
}));
});
{
esnext: Boolean, // (true | false) Defaults to false
configPath: String, // if empty, defaults to '.jscsrc'
reporter: String, // Builtins (checkstyle, console, inline, junit, text)
// Or you can add the file path for a custom reporter
// Defaults to console
filePath: String // Output file path. Defaults to null (will print to stdout)
}