git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79

Files: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79 / lib / app.js

514 bytesRaw
1const combine = require('depject')
2const bulk = require('bulk-require')
3
4const mapModules = require('./mapModules')
5const tranformModule = require('./transformModule')
6
7const types = require('../types')
8const coreModules = require('../modules')
9
10module.exports = setupApp
11
12function setupApp ({ dirname } = {}) {
13 const appExports = bulk(dirname || process.cwd(), ['**/*.js'], { process })
14 const appModules = mapModules(appExports, tranformModule(types))
15
16 return combine(
17 appModules,
18 coreModules
19 )
20}
21

Built with git-ssb-web