What I Learned Today
In order to eliminate all the JavaScript files I need for SyntaxHighlighter to work, I started using Juicer (code) today. Juicer uses the YUI Compressor and JSLint to merge, verify, and minify JavaScript, as well as CSS.
From my Rakefile:
desc "Merge and minify javascript and CSS"
task 'minify' do
system "juicer merge --force #{ROOT_DIR}/css/site.css"
system "juicer merge --force #{ROOT_DIR}/js/sh/shBrushes.js"
end
Juicer can use a @depend directive to automatically pull in other JavaScript, so shBrushes.js just looks like this:
/**
* @depends shBrushBash.js
* @depends shBrushJScript.js
* @depends shBrushRuby.js
* @depends shBrushScala.js
* @depends shBrushXml.js
*/
Published: