Files: c1d6e65b010852de2ccde37d07dbdd7cc685271d / index.js
618 bytesRaw
1 | const combine = require('depject') |
2 | const entry = require('depject/entry') |
3 | const nest = require('depnest') |
4 | const bulk = require('bulk-require') |
5 | |
6 | // const git = require('patch-git') |
7 | const horcrux = require('ssb-horcrux') |
8 | const patchbay = { pathcbay: bulk(__dirname, [ '!(node_modules|junk)/**/*.js' ]) } |
9 | const patchcore = require('patchcore') |
10 | |
11 | // polyfills |
12 | require('setimmediate') |
13 | |
14 | // from more specialized to more general |
15 | const sockets = combine( |
16 | // git, |
17 | horcrux, |
18 | patchbay, |
19 | patchcore |
20 | ) |
21 | |
22 | const api = entry(sockets, nest('main.html.app', 'first')) |
23 | |
24 | const app = api.main.html.app() |
25 | document.body.appendChild(app) |
26 | |
27 |
Built with git-ssb-web