global-module-loader
v1.0.0
Published
load all module as global var
Downloads
22
Maintainers
Readme
This fork from https://www.npmjs.com/package/express-module-loader
'use strict'
const { auto } = require('async')
const moduleLoader = require('global-module-loader')
module.exports = () => cb => auto({
loadHelpers: cb => moduleLoader.loadHelpers(CONFIG.ROOT, cb),
loadControllers: cb => moduleLoader.loadController(CONFIG.ROOT, cb),
loadSchema: cb => moduleLoader.loadSchema(CONFIG.ROOT, cb)
}, cb)