git ssb

16+

Dominic / patchbay



Commit 1d955c3387cdf42644ed019ae648fe45559ac290

remove need to check in static files. remove build step from development

Dominic Tarr committed on 7/31/2016, 10:52:03 AM
Parent: db46d1cf47e3b75b3771f18847f3278ca8abd0d4

Files changed

.gitignorechanged
build.jschanged
modules/index.jschanged
package.jsonchanged
.gitignoreView
@@ -1,4 +1,5 @@
11 node_modules
22 npm-debug.log
33 .npmignore
44 build
5 +modules/_index.js
build.jsView
@@ -3,9 +3,9 @@
33 'module.exports = {\n'
44 +
55 require('fs').readdirSync(require('path').join(__dirname, 'modules'))
66 .filter(function (file) {
7- return file !== 'index.js'
7 + return file !== '_index.js'
88 })
99 .map(function (file) {
1010 return ' '+JSON.stringify(file) + ": require('./"+file+"')"
1111 }).join(',\n')
modules/index.jsView
@@ -1,42 +1,8 @@
1-module.exports = {
2- "_screen_view.js": require('./_screen_view.js'),
3- "about.js": require('./about.js'),
4- "app.js": require('./app.js'),
5- "audio-mp3.js": require('./audio-mp3.js'),
6- "avatar-edit.js": require('./avatar-edit.js'),
7- "avatar-image.js": require('./avatar-image.js'),
8- "avatar-profile.js": require('./avatar-profile.js'),
9- "avatar.js": require('./avatar.js'),
10- "blob-url.js": require('./blob-url.js'),
11- "channel.js": require('./channel.js'),
12- "compose.js": require('./compose.js'),
13- "crypto.js": require('./crypto.js'),
14- "feed.js": require('./feed.js'),
15- "file-input.js": require('./file-input.js'),
16- "follow.js": require('./follow.js'),
17- "git.js": require('./git.js'),
18- "invite.js": require('./invite.js'),
19- "like.js": require('./like.js'),
20- "markdown.js": require('./markdown.js'),
21- "message-confirm.js": require('./message-confirm.js'),
22- "message-link.js": require('./message-link.js'),
23- "message-name.js": require('./message-name.js'),
24- "message.js": require('./message.js'),
25- "meta-image.js": require('./meta-image.js'),
26- "music-release-cc.js": require('./music-release-cc.js'),
27- "music-release.js": require('./music-release.js'),
28- "names.js": require('./names.js'),
29- "notifications.js": require('./notifications.js'),
30- "post.js": require('./post.js'),
31- "private.js": require('./private.js'),
32- "public.js": require('./public.js'),
33- "relationships.js": require('./relationships.js'),
34- "search-box.js": require('./search-box.js'),
35- "search.js": require('./search.js'),
36- "split.js": require('./split.js'),
37- "suggest-mentions.js": require('./suggest-mentions.js'),
38- "suggest.js": require('./suggest.js'),
39- "tabs.js": require('./tabs.js'),
40- "thread.js": require('./thread.js'),
41- "timestamp.js": require('./timestamp.js')
42-}
1 +var fs = require('fs')
2 +
3 +fs.readdirSync(__dirname).forEach(function (e) {
4 + if(e !== '_index.js')
5 + exports[e] = require(path.join('./'+e))
6 +})
7 +
8 +
package.jsonView
@@ -43,10 +43,13 @@
4343 "devDependencies": {
4444 "brfs": "^1.4.3",
4545 "indexhtmlify": "^1.2.1"
4646 },
47 + "browser": {
48 + "./modules/index.js": "./modules/_index.js"
49 + },
4750 "scripts": {
48- "build": "node build.js > modules/index.js && mkdir -p build && browserify -t brfs index.js > build/bundle.js && indexhtmlify < build/bundle.js > build/index.html",
51 + "build": "node build.js > modules/_index.js && mkdir -p build && browserify -t brfs index.js > build/bundle.js && indexhtmlify < build/bundle.js > build/index.html",
4952 "graph": "node index.js | dot -Tsvg > graph.svg",
5053 "test": "set -e; for t in test/*.js; do node $t; done"
5154 },
5255 "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)",

Built with git-ssb-web