git ssb

0+

ev / microbay



forked from Dominic / patchbay

Tree: ca213872adba5add2c560efc40b8c58884d989f9

Files: ca213872adba5add2c560efc40b8c58884d989f9 / 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