Skip to content

Commit

Permalink
Merge pull request #110 from yoshuawuyts/yo-yoify
Browse files Browse the repository at this point in the history
Yo yoify
  • Loading branch information
yoshuawuyts authored Jul 2, 2016
2 parents f1b59ca + e0fd6ef commit a8d8744
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 3 additions & 0 deletions scripts/test-size
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ USAGE
gzip_size () {
browserify index.js \
-g unassertify \
-g yo-yoify \
-g es2020 \
-g uglifyify \
-p bundle-collapser/plugin \
Expand All @@ -24,6 +25,7 @@ gzip_size () {
min_size () {
browserify index.js \
-g unassertify \
-g yo-yoify \
-g es2020 \
-g uglifyify \
-p bundle-collapser/plugin \
Expand All @@ -35,6 +37,7 @@ min_size () {
run_discify () {
browserify index.js --full-paths \
-g unassertify \
-g yo-yoify \
-g es2020 \
-g uglifyify \
| uglifyjs \
Expand Down

0 comments on commit a8d8744

Please sign in to comment.