spee.ch/client/containers/index.js

13 lines
324 B
JavaScript
Raw Normal View History

2018-03-22 01:35:51 +01:00
const Path = require('path');
2018-03-31 00:27:28 +02:00
const { getSubDirectoryNames } = require('tools/getFolderNames.js');
2018-03-22 01:35:51 +01:00
const thisFolder = Path.resolve(__dirname, 'client/containers/');
2018-03-22 05:53:25 +01:00
let modules = {};
getSubDirectoryNames(thisFolder)
.forEach((name) => {
modules[name] = require(`./${name}`).default;
});
module.exports = modules;