Commit 72483d41ff0fbb76209ef40a0cdcf91409b6db7f
build script which generates plugin loader
Dominic Tarr committed on 6/24/2016, 9:46:50 PMParent: 783d336f14fe7f13b2784e33007e0ac65afeeeea
Files changed
index.js | changed |
build.js | added |
index.js | ||
---|---|---|
@@ -5,12 +5,13 @@ | ||
5 | 5 | var fs = require('fs') |
6 | 6 | var path = require('path') |
7 | 7 | var SbotApi = require('./sbot-api') |
8 | 8 | |
9 | -document.head.appendChild(h('style', fs.readFileSync('./style.css', 'utf8'))) | |
9 | +document.head.appendChild( | |
10 | + h('style', fs.readFileSync('./style.css', 'utf8') | |
11 | +)) | |
10 | 12 | |
11 | -var modules = fs.readdirSync(path.join(__dirname, 'modules')) | |
12 | - .map(function (e) { return require('./modules/'+e) }) | |
13 | +var modules = require('./modules') | |
13 | 14 | |
14 | 15 | var renderers = [] |
15 | 16 | var app = [] |
16 | 17 | var App = require('./plugs').first(app) |
@@ -28,4 +29,5 @@ | ||
28 | 29 | |
29 | 30 | |
30 | 31 | |
31 | 32 | |
33 | + |
Built with git-ssb-web