Created
March 22, 2013 14:44
-
-
Save ynaoto/5221796 to your computer and use it in GitHub Desktop.
Rakefile to handle .litcoffee
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
LITCOFFEES = FileList['*.litcoffee'] | |
JSS = LITCOFFEES.ext('.js') | |
rule '.js' => '.litcoffee' do |t| | |
sh "coffee -c #{t.source}" | |
end | |
task :default => JSS | |
task :watch do | |
sh "coffee -cw #{LITCOFFEES}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment