gulp-cccp v0.3.1
gulp-cccp
A gulp utility for Code Complexity Check (plus) Plato This is more of a "Configurable Task Bundle" than a plugin. The idea is: "Run a function with a config object (as an argument) once and set up a bundle of tasks to be used later".
gulpfile example:
var gulp = require("gulp"),
cccp = require("gulp-cccp"),
cccpConfig = {
plato: {
"dir": "report"
},
checkFixSrc: [
"**/*.js",
"**/*.json",
"!node_modules/**",
"!report/**"
],
complexityCheck: ["*.js"]
};
cccp(cccpConfig);
Bundled Plugins
(from package.json)
"gulp-complexity": "^0.3.2",
"gulp-js-prettify": "^0.1.0",
"gulp-jslint": "^1.0.5",
"gulp-line-ending-corrector": "^1.0.1",
"plato": "^1.7.0"
Options
platoDir (string) The directory where you want the platoreport.
plato (object) (will owerwrite platoDir)
{
dir: "[platoReportDirectory] (string)" //(default: "report")
options: {} // [platoArgs] (object)
}
checkout: https://www.npmjs.com/package/es6-plato for availible "platoArgs"
checkFixSrc (glob) Glob for gulp-js-prettify and gulp-jslint
complexityCheck (glob, array) Glob (array, not string) to the files you want to check with gulp-complexity and plato.
prettify (object) gulp-js-prettify options https://www.npmjs.com/package/gulp-js-prettify
jslint (object) jslint options https://www.npmjs.com/package/gulp-jslint
Use
Type this in the command line:
gulp cccp