git ssb

16+

Dominic / patchbay



Tree: 3749f15ab29b87f88432151f4b215df969f5d43e

Files: 3749f15ab29b87f88432151f4b215df969f5d43e / 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