Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Add script to build minified library (fix #66)
Browse files Browse the repository at this point in the history
- run bin/minify from the project root
- minified version is outputted to build/fastclick.min.js
  • Loading branch information
mattcg committed Jan 29, 2013
1 parent c888ea7 commit 12bed1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,4 +1,5 @@
~$* ~$*
.DS_Store .DS_Store
Thumbs.db Thumbs.db
Desktop.ini Desktop.ini
build
5 changes: 5 additions & 0 deletions bin/minify
@@ -0,0 +1,5 @@
#!/bin/sh
[ -d build ] || mkdir build
curl --data-urlencode "js_code@lib/fastclick.js" --data "compilation_level=SIMPLE_OPTIMIZATIONS&output_info=compiled_code&output_format=text" http://closure-compiler.appspot.com/compile -o build/fastclick.min.js --progress-bar
curl --data-urlencode "js_code@lib/fastclick.js" --data "compilation_level=SIMPLE_OPTIMIZATIONS&output_info=statistics&output_format=text" http://closure-compiler.appspot.com/compile
echo "Output to build/fastclick.min.js"

0 comments on commit 12bed1f

Please sign in to comment.