tools/web.js
Function processDirectory
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processDirectory(srcDir, destDir, only) {
return Promise.resolve().then(function() {
return fs.readdir(srcDir)
}).then(function(files) {
return Promise.all(files.map(function(file) {
Function browserifyOutDated
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function browserifyOutDated(moduleName, relativeModuleFileName, exposedName, outputDir) {
var moduleDir = './node_modules/'+moduleName+'/';
var registry='./tools/versions.json';
var regJSON, modJSON;
var mustUpdate = false;