git ssb

16+

Dominic / patchbay



Tree: 364194e32458712cc0a1f6cd0e651f56556f0dba

Files: 364194e32458712cc0a1f6cd0e651f56556f0dba / index.js

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

Built with git-ssb-web