Skip to content

Instantly share code, notes, and snippets.

@jrmehle
Created March 20, 2009 21:58
Show Gist options
  • Save jrmehle/82604 to your computer and use it in GitHub Desktop.
Save jrmehle/82604 to your computer and use it in GitHub Desktop.
Ruby shell script wrapper around YUI compressor.
#!/usr/bin/env ruby
file_to_minify = ARGV.first
system "java -jar /Users/jaredmehle/Documents/workspace/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar #{file_to_minify} -o #{file_to_minify.split('.').first}-min.js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment