bin/crafter-bundle.js
Function createBundle
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createBundle(output, sourceFileGlob) {
var outputPath = path.resolve(process.cwd(), output);
winston.info('Reading source files ', sourceFileGlob);
winston.info('Writing result to ', outputPath);
Function visit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.pipe(through2.obj(function visit(file, enc, next) {
if (file.isNull()) {
this.push(file); // pass along
return next();
}