remove .coffee extension on compiled version of CoffeeScript files

When compiled, CoffeeScript files had names like "my_lib.coffee.js". This
broke compatibility with RequireJS.  Changing the naming convention to use
only the .js extension allows files to be used as RequireJS modules.
This commit is contained in:
David Beveridge 2013-08-25 20:02:30 -07:00
parent 1055dc1016
commit 6b2055f642

View File

@ -14,6 +14,11 @@ module Jasmine
def action def action
CoffeeScript.compile(File.read(file)) CoffeeScript.compile(File.read(file))
end end
def relative_cache_file
super.gsub(/.coffee$/, '')
end
end end
end end
end end