public
Created

  • Download Gist
AssetFile.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
input "app/assets"
output "public"
 
# convert coffee files into JS files
matches "*.coffee" do
filter(CoffeeScriptFilter) do |file|
"#{file}.js"
end
end
 
# concatenate all js files into application.js, will include
# the coffeescript files in the previous step
matches "*.js" do
filter Rake::Pipeline::ConcatFilter, "application.js"
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.