gc *.js | java -jar yuicompressor-2.4.2.jar --type js -o liteGrid.min.js
The script assumes that “java” is in your path and that yuicompressor is in the current directory. Enjoy!
I’ll get back to writing longer (better?) blog posts next week, this week is filled with deadlines and other not-fun stuff.
Update: Rookie mistake: you want to be sure you delete the minimized file before regenerating it, otherwise it’s old contents will be pulled in as well (not good).