script: add yo-yoify to the mix
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<strong>Fun functional programming</strong>
|
<strong>Fun functional programming</strong>
|
||||||
</div>
|
</div>
|
||||||
<div align="center">
|
<div align="center">
|
||||||
A <code>7kb</code> framework for creating sturdy frontend applications
|
A <code>5kb</code> framework for creating sturdy frontend applications
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
- [License](#license)
|
- [License](#license)
|
||||||
|
|
||||||
## Features
|
## 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
|
- __single state:__ immutable single state helps reason about changes
|
||||||
- __small api:__ with only 6 methods, there's not a lot to learn
|
- __small api:__ with only 6 methods, there's not a lot to learn
|
||||||
- __minimal tooling:__ built for the cutting edge `browserify` compiler
|
- __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
|
statements which reduces file size. Use as a `--global` transform
|
||||||
- [es2020](https://github.com/yoshuawuyts/es2020) - backport `const`,
|
- [es2020](https://github.com/yoshuawuyts/es2020) - backport `const`,
|
||||||
`fat-arrows` and `template strings` to older browsers
|
`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
|
- [uglifyify](https://github.com/hughsk/uglifyify) - minify your code using
|
||||||
UglifyJS2. Use as a `--global` transform
|
UglifyJS2. Use as a `--global` transform
|
||||||
- [bulkify](https://www.npmjs.com/package/bulkify) - transform inline
|
- [bulkify](https://www.npmjs.com/package/bulkify) - transform inline
|
||||||
@@ -821,6 +824,7 @@ Generally for production builds you'll want to run:
|
|||||||
```sh
|
```sh
|
||||||
$ NODE_ENV=production browserify \
|
$ NODE_ENV=production browserify \
|
||||||
-t envify \
|
-t envify \
|
||||||
|
-g yo-yoify \
|
||||||
-g unassertify \
|
-g unassertify \
|
||||||
-g es2020 \
|
-g es2020 \
|
||||||
-g uglifyify \
|
-g uglifyify \
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
"standard": "^7.1.0",
|
"standard": "^7.1.0",
|
||||||
"tachyons": "^4.0.0-beta.19",
|
"tachyons": "^4.0.0-beta.19",
|
||||||
"tape": "^4.5.1",
|
"tape": "^4.5.1",
|
||||||
|
"yo-yoify": "^3.1.0",
|
||||||
"zuul": "toddself/zuul"
|
"zuul": "toddself/zuul"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ USAGE
|
|||||||
gzip_size () {
|
gzip_size () {
|
||||||
browserify index.js \
|
browserify index.js \
|
||||||
-g unassertify \
|
-g unassertify \
|
||||||
|
-g yo-yoify \
|
||||||
-g es2020 \
|
-g es2020 \
|
||||||
-g uglifyify \
|
-g uglifyify \
|
||||||
-p bundle-collapser/plugin \
|
-p bundle-collapser/plugin \
|
||||||
@@ -24,6 +25,7 @@ gzip_size () {
|
|||||||
min_size () {
|
min_size () {
|
||||||
browserify index.js \
|
browserify index.js \
|
||||||
-g unassertify \
|
-g unassertify \
|
||||||
|
-g yo-yoify \
|
||||||
-g es2020 \
|
-g es2020 \
|
||||||
-g uglifyify \
|
-g uglifyify \
|
||||||
-p bundle-collapser/plugin \
|
-p bundle-collapser/plugin \
|
||||||
@@ -35,6 +37,7 @@ min_size () {
|
|||||||
run_discify () {
|
run_discify () {
|
||||||
browserify index.js --full-paths \
|
browserify index.js --full-paths \
|
||||||
-g unassertify \
|
-g unassertify \
|
||||||
|
-g yo-yoify \
|
||||||
-g es2020 \
|
-g es2020 \
|
||||||
-g uglifyify \
|
-g uglifyify \
|
||||||
| uglifyjs \
|
| uglifyjs \
|
||||||
|
|||||||
Reference in New Issue
Block a user