spee.ch/client/containers/index.js
2018-03-21 21:53:25 -07:00

12 lines
324 B
JavaScript

const Path = require('path');
const { getSubDirectoryNames } = require('build/getFolderNames.js');
const thisFolder = Path.resolve(__dirname, 'client/containers/');
let modules = {};
getSubDirectoryNames(thisFolder)
.forEach((name) => {
modules[name] = require(`./${name}`).default;
});
module.exports = modules;