Commit e21a9be3a9549565bc7a341242f66ca526e31ce9
build to HTML still
Joran Kikke committed on 8/31/2016, 4:29:16 AMParent: a2e4ccaa04889120de5ef2a15f06418ce68d43a7
Files changed
index.js | changed |
modules/compose.js | changed |
package.json | changed |
index.js | ||
---|---|---|
@@ -27,15 +27,13 @@ | ||
27 | 27 … | console.log(require('depject/graph')(modules)) |
28 | 28 … | process.exit(0) |
29 | 29 … | } |
30 | 30 … | |
31 | -document.head.appendChild( | |
32 | - h('style', fs.readFileSync('./css/style.css', 'utf8') | |
33 | -)) | |
34 | -document.head.appendChild( | |
35 | - h('style', fs.readFileSync('./css/bootstrap.css', 'utf8') | |
36 | -)) | |
37 | -document.head.appendChild( | |
38 | - h('style', fs.readFileSync('./css/bootstrap_theme.css', 'utf8') | |
39 | -)) | |
31 … | +// | |
32 … | +// document.head.appendChild( | |
33 … | +// h('style', fs.readFileSync('./css/bootstrap.css', 'utf8') | |
34 … | +// )) | |
35 … | +// document.head.appendChild( | |
36 … | +// h('style', fs.readFileSync('./css/bootstrap_theme.css', 'utf8') | |
37 … | +// )) | |
40 | 38 … | |
41 | 39 … | document.body.appendChild(modules['app.js'].app()) |
modules/compose.js | ||
---|---|---|
@@ -89,10 +89,8 @@ | ||
89 | 89 … | var publishBtn = h('button.btn.primary-btn', 'Publish', {onclick: publish}) |
90 | 90 … | var composer = |
91 | 91 … | h('div.compose', h('div.column', ta, |
92 | 92 … | accessories = h('fieldset.compose__controls', |
93 | - //hidden until you focus the textarea | |
94 | - {disabled: true}, | |
95 | 93 … | file_input(function (file) { |
96 | 94 … | files.push(file) |
97 | 95 … | filesById[file.link] = file |
98 | 96 … |
package.json | ||
---|---|---|
@@ -52,9 +52,9 @@ | ||
52 | 52 … | "browser": { |
53 | 53 … | "./modules/index.js": "./modules/_index.js" |
54 | 54 … | }, |
55 | 55 … | "scripts": { |
56 | - "build": "node build.js > modules/_index.js && mkdir -p build && browselectrify index.js > build/bundle.js", | |
56 … | + "build": "node build.js > modules/_index.js && mkdir -p build && browselectrify index.js > build/bundle.js && indexhtmlify < build/bundle.js > build/index.html", | |
57 | 57 … | "graph": "node index.js | dot -Tsvg > graph.svg", |
58 | 58 … | "test": "set -e; for t in test/*.js; do node $t; done" |
59 | 59 … | }, |
60 | 60 … | "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)", |
Built with git-ssb-web