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:
parent
1055dc1016
commit
6b2055f642
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user