Gulp plugin for running buddy.js
Install
$ npm install --save-dev gulp-buddy.js
Usage
var gulp = require('gulp');
var buddyjs = require('gulp-buddy.js');
gulp.task('default', function () {
return gulp.src('app.js')
.pipe(buddyjs({
disableIgnore: true,
reporter: 'detailed'
}));
});
Options
detectObjects
Type: Boolean
Default value: false
Detect object expressions and properties.
ignore
Type: Array
Default value: [0, 1]
Numbers that will be ignored in the processing.
disableIgnore
Type: Boolean
Default value: false
Disables the ignore list.
enforceConst
Type: Boolean
Default value: false
Enforce literals to be declared with the const
keyword.
noColor
Type: Boolean
Default value: false
Disables colors
reporter
Type: String
Default value: 'simple'
Reporter to use. Options available are 'simple'
, 'json'
and 'detailed'
.