Skip to content

Instantly share code, notes, and snippets.

@ynaoto
Created March 22, 2013 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ynaoto/5221796 to your computer and use it in GitHub Desktop.
Save ynaoto/5221796 to your computer and use it in GitHub Desktop.
Rakefile to handle .litcoffee
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