Files: 868a0d3f76d7969aaf72c4eae505dbc4317bc3f1 / main.js
750 bytesRaw
1 | const combine = require('depject') |
2 | const entry = require('depject/entry') |
3 | const nest = require('depnest') |
4 | const values = require('lodash/values') |
5 | |
6 | const { patchcore, patchbay, plugins } = require('./exports') |
7 | |
8 | function 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 | |
21 | module.exports = Start |
22 | |
23 | // // for electro[n] |
24 | // if (typeof window !== 'undefined' && !module.parent.parent) { |
25 | // App() |
26 | // } |
27 |
Built with git-ssb-web