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
|
||||
CoffeeScript.compile(File.read(file))
|
||||
end
|
||||
|
||||
def relative_cache_file
|
||||
super.gsub(/.coffee$/, '')
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user