Skip to content

Instantly share code, notes, and snippets.

@felixge
Created July 21, 2010 10:21
Show Gist options
  • Save felixge/484311 to your computer and use it in GitHub Desktop.
Save felixge/484311 to your computer and use it in GitHub Desktop.
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