Very quick and dirty modification of Ben Pickles' minify, moving the actual minification to a web service in case you already have a minification workflow in place but don't want to install java on your development virtual machine.
You need Ruby, gems sinatra
and closure-compiler
(and thus Java) on the machine that hosts the web service.
Start the web service with
ruby app.rb
On the machine that calls the web service, you need to set the environment variable MINIFY_HOST
with the host and port of the web service:
export MINIFY_HOST=10.0.0.42:4567
Then
ruby minify.rb foo.js