Skip to content

Instantly share code, notes, and snippets.

@wycats
Created November 22, 2011 08:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wycats/1385143 to your computer and use it in GitHub Desktop.
Save wycats/1385143 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment