From 6699f412f76813b0129eff9514b99d871d55b50f Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Wed, 11 May 2016 14:07:10 +0700 Subject: [PATCH] script: add size test --- README.md | 2 +- scripts/test-size | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 scripts/test-size diff --git a/README.md b/README.md index cb4fa19..2b06205 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ experience and distills the essence of functional architectures into a productive package. ## Features -- __minimal size:__ weighing under `15kb`, `choo` is a tiny little framework +- __minimal size:__ weighing under `8kb`, `choo` is a tiny little framework - __single state:__ immutable single state helps reason about changes - __minimal tooling:__ built for the cutting edge `browserify` compiler - __transparent side effects:__ using "effects" and "subscriptions" brings diff --git a/scripts/test-size b/scripts/test-size new file mode 100755 index 0000000..279de9d --- /dev/null +++ b/scripts/test-size @@ -0,0 +1,12 @@ +#!/bin/sh + +# browserify index.js --full-paths \ +# -g unassertify \ +# -t uglifyify \ +# | discify --open + +browserify index.js --full-paths \ + -g unassertify \ + -g uglifyify \ + | gzip-size \ + | pretty-bytes