git ssb

16+

Dominic / patchbay



Tree: 6993e3bdaf03244699ce17ff18a4026c4724ea0b

Files: 6993e3bdaf03244699ce17ff18a4026c4724ea0b / main.js

750 bytesRaw
1const combine = require('depject')
2const entry = require('depject/entry')
3const nest = require('depnest')
4const values = require('lodash/values')
5
6const { patchcore, patchbay, plugins } = require('./exports')
7
8function Start (config = {}) {
9 // polyfills
10 require('setimmediate')
11
12 // TODO spin up settings check which modules are wanted
13 const args = [ ...values(plugins), patchbay, patchcore ]
14 // plugings loaded first will over-ride core modules loaded later
15 const sockets = combine.apply(null, args)
16
17 const api = entry(sockets, nest('app.html.app', 'first'))
18 document.body.appendChild(api.app.html.app())
19}
20
21module.exports = Start
22
23// // for electro[n]
24// if (typeof window !== 'undefined' && !module.parent.parent) {
25// App()
26// }
27

Built with git-ssb-web