Merge pull request #110 from yoshuawuyts/yo-yoify

Yo yoify
This commit is contained in:
Yoshua Wuyts
2016-07-02 23:10:28 +02:00
committed by GitHub
3 changed files with 10 additions and 2 deletions
+6 -2
View File
@@ -7,7 +7,7 @@
<strong>Fun functional programming</strong>
</div>
<div align="center">
A <code>7kb</code> framework for creating sturdy frontend applications
A <code>5kb</code> framework for creating sturdy frontend applications
</div>
<br />
@@ -88,7 +88,7 @@
- [License](#license)
## Features
- __minimal size:__ weighing `7kb`, `choo` is a tiny little framework
- __minimal size:__ weighing `5kb`, `choo` is a tiny little framework
- __single state:__ immutable single state helps reason about changes
- __small api:__ with only 6 methods, there's not a lot to learn
- __minimal tooling:__ built for the cutting edge `browserify` compiler
@@ -797,6 +797,9 @@ Consider running some of the following:
statements which reduces file size. Use as a `--global` transform
- [es2020](https://github.com/yoshuawuyts/es2020) - backport `const`,
`fat-arrows` and `template strings` to older browsers
- [yo-yoify](https://github.com/shama/yo-yoify) - replace the internal `hyperx`
dependency with `document.createElement` calls; greatly speeds up performance
too
- [uglifyify](https://github.com/hughsk/uglifyify) - minify your code using
UglifyJS2. Use as a `--global` transform
- [bulkify](https://www.npmjs.com/package/bulkify) - transform inline
@@ -821,6 +824,7 @@ Generally for production builds you'll want to run:
```sh
$ NODE_ENV=production browserify \
-t envify \
-g yo-yoify \
-g unassertify \
-g es2020 \
-g uglifyify \
+1
View File
@@ -47,6 +47,7 @@
"standard": "^7.1.0",
"tachyons": "^4.0.0-beta.19",
"tape": "^4.5.1",
"yo-yoify": "^3.1.0",
"zuul": "toddself/zuul"
}
}
+3
View File
@@ -13,6 +13,7 @@ USAGE
gzip_size () {
browserify index.js \
-g unassertify \
-g yo-yoify \
-g es2020 \
-g uglifyify \
-p bundle-collapser/plugin \
@@ -24,6 +25,7 @@ gzip_size () {
min_size () {
browserify index.js \
-g unassertify \
-g yo-yoify \
-g es2020 \
-g uglifyify \
-p bundle-collapser/plugin \
@@ -35,6 +37,7 @@ min_size () {
run_discify () {
browserify index.js --full-paths \
-g unassertify \
-g yo-yoify \
-g es2020 \
-g uglifyify \
| uglifyjs \