git ssb

16+

Dominic / patchbay



Tree: 0261afd0ccea7e59230e1527e10a286fd81bb47f

Files: 0261afd0ccea7e59230e1527e10a286fd81bb47f / main.js

638 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 const sockets = combine.apply(null, [
13 ...values(plugins), // TODO spin up settings check which modules are wanted
14 patchbay,
15 patchcore
16 ])
17 // plugins loaded first will over-ride core modules loaded later
18
19 const api = entry(sockets, nest('app.html.app', 'first'))
20 document.body.appendChild(api.app.html.app())
21}
22
23module.exports = Start
24

Built with git-ssb-web