remove coffee watchr

This commit is contained in:
John Bintz 2011-06-07 14:56:44 -04:00
parent 0426fc57cc
commit c5956ee7d3

View File

@ -1,18 +0,0 @@
require 'coffee-script'
FILE = 'jasmine/jasmine.headless-reporter.coffee' if !self.class.const_defined?(:FILE)
TARGET = FILE.gsub('.coffee', '.js') if !self.class.const_defined?(:TARGET)
watch(FILE) { coffee }
def coffee
begin
File.open(TARGET, 'w') { |fh| fh.print CoffeeScript.compile File.open(FILE) }
puts "Wrote #{TARGET}"
rescue Exception => e
puts e.message
end
end
coffee