Skip to content

Instantly share code, notes, and snippets.

@xarimanx
Created November 5, 2015 08:10
Show Gist options
  • Save xarimanx/f2a34d4366e7d4152b1f to your computer and use it in GitHub Desktop.
Save xarimanx/f2a34d4366e7d4152b1f to your computer and use it in GitHub Desktop.
manual coffee compile
namespace :coffee do
task :compile, :filename do |t, args|
filename = args.filename
puts CoffeeScript.compile(File.open(filename))
end
end
Then, you can compile a single file from like this:
$ rake coffee:compile[app/assets/javascripts/mystuff.js.coffee]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment