Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 242 Bytes
require 'coffee-script'
task :build do
Dir['./*.coffee'].each do |src|
dest = src.sub(/\.coffee/, '.js')
data = CoffeeScript.compile(File.read(src))
File.open(dest, 'w') { |f| f.write(data) }
end
end
task :default => :build