Permalink
Browse files

Add script to build minified library (fix #66)

- run bin/minify from the project root
- minified version is outputted to build/fastclick.min.js
  • Loading branch information...
1 parent c888ea7 commit 12bed1fd7c81155a59c623162f1b2062af05f262 @mattcg mattcg committed Jan 29, 2013
Showing with 7 additions and 1 deletion.
  1. +2 −1 .gitignore
  2. +5 −0 bin/minify
View
@@ -1,4 +1,5 @@
~$*
.DS_Store
Thumbs.db
-Desktop.ini
+Desktop.ini
+build
View
@@ -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.