This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# APP_PATH is your application root path | |
# YUI_COMPRESSOR_PATH is the path to the yuicompressor-x.x.x.jar | |
# Files are replaced. Designed to run over the build artifacts on the CI server | |
desc "Minify the javascript and css files that are within the artifacts folder" | |
task :minify => [:copy_artifacts] do | |
#http://developer.yahoo.com/yui/compressor/ | |
puts "Minifying javascript" | |
js_files = FileList["#{APP_PATH}/**/*.js"].exclude(/.min.js/) |
NewerOlder