Created
November 5, 2015 08:10
-
-
Save xarimanx/f2a34d4366e7d4152b1f to your computer and use it in GitHub Desktop.
manual coffee compile
This file contains 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
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