git ssb

0+

dangerousbeans / patchbay-bootstrap



Tree: 4933079a082563c40c9370cc82beab1aea4f11f6

Files: 4933079a082563c40c9370cc82beab1aea4f11f6 / index.js

898 bytesRaw
1var h = require('hyperscript')
2var u = require('./util')
3var pull = require('pull-stream')
4var combine = require('depject')
5var fs = require('fs')
6var path = require('path')
7var SbotApi = require('./sbot-api')
8
9var modules = require('./modules')
10
11var renderers = []
12var app = []
13//var App = require('./plugs').first(app)
14
15var u = require('./util')
16
17//modules.unshift(SbotApi())
18//modules.unshift({app: app})
19
20//var indexes = fs.readdirSync(path.join(__dirname, 'modules'))
21//var i = indexes.indexOf('index.js')
22//indexes.splice(i, 1)
23
24modules['app.js' ] = {app: app}
25modules['sbot-api.js'] = SbotApi()
26
27combine(modules) //, ['app', 'sbot'].concat(indexes) )
28
29if(process.title === 'node') {
30 console.log(require('depject/graph')(modules))
31 process.exit(0)
32}
33
34document.head.appendChild(
35 h('style', fs.readFileSync('./style.css', 'utf8')
36))
37
38document.body.appendChild(modules['app.js'].app[0]())
39
40

Built with git-ssb-web