Browse files

improved build script

  • Loading branch information...
contra committed Sep 17, 2011
1 parent 7f95ea0 commit 39e74f870d7940147ff6e141da13703ed481b93d
Showing with 10 additions and 3 deletions.
  1. +9 −2 build
  2. +1 −1 nova.min.js
11 build
@@ -1,4 +1,11 @@
-coffee --watch --join nova.js --compile ./src/ ./src/ ./src/modules/*.coffee
-uglifyjs --unsafe -nc --reserved-names "require" -o nova.min.js nova.js ./lib/superagent.js
+coffee --watch --join "$IN" --compile ./src/ ./src/ ./src/modules/*.coffee
+SIZE_MIN=$(uglifyjs "$IN" --extra --unsafe --reserved-names "require" | tee "$OUT" | wc -c)
+SIZE_GZIP=$(gzip -nfc --best "$OUT" | wc -c)
+echo $SIZE_MIN bytes minified, $SIZE_GZIP bytes gzipped

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 39e74f8

Please sign in to comment.