Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Switch to nanohtml. #488

Merged
merged 1 commit into from
May 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ care how we do this: it's lots of glue code, and not necessarily pretty. But it
can be useful to know which optimizations we apply. This is a list:

### JavaScript
- __yo-yoify:__ Optimize `choo` HTML code so it run significantly faster in the
- __nanohtml:__ Optimize `choo` HTML code so it run significantly faster in the
browser.
- __glslify:__ Adds a module system to GLSL shaders.
- __brfs:__ Statically inline calls to `fs.readFile()`. Useful to ship assets
Expand Down
4 changes: 2 additions & 2 deletions lib/graph-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var browserify = require('browserify')
var babelify = require('babelify')
var watchify = require('watchify')
var sheetify = require('sheetify')
var yoyoify = require('yo-yoify')
var nanohtml = require('nanohtml')
var tinyify = require('tinyify')
var glslify = require('glslify')
var envify = require('envify/custom')
Expand Down Expand Up @@ -87,7 +87,7 @@ function node (state, createEdge) {
})

b.transform(brfs, { global: true })
b.transform(yoyoify, { global: true })
b.transform(nanohtml, { global: true })

if (!fullPaths) b.plugin(cssExtract, { out: bundleStyles })

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"keypress": "^0.2.1",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"nanohtml": "^1.2.4",
"nanologger": "^1.3.1",
"nanoraf": "^3.0.1",
"nanotiming": "^7.2.0",
Expand Down Expand Up @@ -79,8 +80,7 @@
"v8-compile-cache": "^2.0.0",
"wasm-brotli": "^1.0.2",
"watchify": "^3.10.0",
"wayfarer": "^6.6.3",
"yo-yoify": "^4.3.0"
"wayfarer": "^6.6.3"
},
"devDependencies": {
"a-module-with-babelrc": "^1.0.0",
Expand Down