git ssb

16+

Dominic / patchbay



Tree: 2a8fa0681f7428cea97270806034311e55f4747b

Files: 2a8fa0681f7428cea97270806034311e55f4747b / ui.js

641 bytesRaw
1const combine = require('depject')
2const entry = require('depject/entry')
3const nest = require('depnest')
4const values = require('lodash/values')
5
6const { patchcore, patchbay, plugins, configModule } = require('./exports')
7
8function Start (config = {}) {
9 // polyfills
10 require('setimmediate')
11
12 const sockets = combine(
13 ...values(plugins), // TODO spin up settings check which modules are wanted
14 configModule(config),
15 patchbay,
16 patchcore
17 )
18 // plugins loaded first will over-ride core modules loaded later
19
20 const api = entry(sockets, nest('app.sync.start', 'first'))
21 api.app.sync.start()
22}
23
24module.exports = Start
25

Built with git-ssb-web