lib/core.js
function(next) {
            if (options.noModules) return next();
            var opts = {
                denyModules: options.denyModules || core.denyModules[core.role] || core.denyModules[""],
                allowModules: options.allowModules || core.allowModules[core.role] || core.allowModules[""],
                stopOnError: options.stopOnError || core.stopOnError,
            };
            var modules = path.resolve(__dirname, "../modules");
            core.loadModules(modules, opts);
            core.path.modules.forEach(function(mod) {
                if (modules == path.resolve(mod)) return;
                core.loadModules(mod, opts);
            });
            next();
        }
function(next) {
            if (options.noModules) return next();
            var opts = {
                denyModules: options.denyModules || core.denyModules[core.role] || core.denyModules[""],
                allowModules: options.allowModules || core.allowModules[core.role] || core.allowModules[""],
                stopOnError: options.stopOnError || core.stopOnError,
            };
            var modules = path.resolve(__dirname, "../modules");
            core.loadModules(modules, opts);
            core.path.modules.forEach(function(mod) {
                if (modules == path.resolve(mod)) return;
                core.loadModules(mod, opts);
            });
            next();
        }
function ( next ) { if ( options . noModules ) return next ( ) ; var opts = { denyModules : options . denyModules || core . denyModules [ core . role ] || core . denyModules [ "" ] , allowModules : options . allowModules || core . allowModules [ core . role ] || core . allowModules [ "" ] , stopOnError : options . stopOnError || core . stopOnError , } ; var modules = path . resolve ( __dirname , "../modules" ) ; core . loadModules ( modules , opts ) ; core . path . modules . forEach ( function ( mod ) { if ( modules == path . resolve ( mod ) ) return ; core . loadModules ( mod , opts ) ; } ) ; next ( ) ; }
Load external modules, from the core and from the app home
Load external modules from the core and from the app home