Created
July 21, 2010 10:21
-
-
Save felixge/484311 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
@echo "Combining files ..." | |
@cat \ | |
js/dep/jquery.easing.js \ | |
js/dep/jquery.jsonp.js \ | |
js/dep/json2.js \ | |
js/dep/toolbox.expose.js \ | |
js/lib/jquery.transloadit2.js > build/jquery.transloadit2.js | |
@echo "Compiling with Closure REST API ..." | |
@curl \ | |
-s \ | |
-X POST \ | |
--data-urlencode compilation_level="SIMPLE_OPTIMIZATIONS" \ | |
--data-urlencode output_format="text" \ | |
--data-urlencode output_info="compiled_code" \ | |
--data-urlencode js_code@build/jquery.transloadit2.js \ | |
-o build/jquery.transloadit2.js \ | |
http://closure-compiler.appspot.com/compile | |
@echo "Build complete:" | |
@ls -lh build/jquery.transloadit2.js | awk '{print $$9, $$5}' | |
.PHONY: build clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment