Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
How to make Google's closure a command line executable for awesomeness
  • Download Closure
  • Place the java jar file within /usr/local/libexec
  • Create /usr/local/bin/closure, copy in the bash script shown below
  • Run chmod +x /usr/local/bin/closure

Enjoy running closure

java -jar /usr/local/libexec/compiler.jar $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.