Closed AsaAyers closed 10 years ago
What does it do? I even don't know what it is. Probably, it can be removed completely I think. @jsoverson, do you know that?
To work with CoffeeScript I need all of the modules prefixed with cs!
.
What was already here is an extremely naive implementation that assumes all of the files will use the same loader. The long term solution should be to examine the filenames and use appropriate loaders, but I simply fixed what was already implemented.
code works fine. but this functionality looks weird. Don't you think coffeescript source file should be preprocessed before this task?
No, RequireJS has a plugin called require-cs that compiles them on the fly so you don't have to trash you project with a bunch of javascript files. It also works with RequireJS's optimizer so it converts all of your CoffeeScript files into one Javascript file for deployment.
It looks like at some point the module names were moved from
context
out tocontext.scripts
.It's not clear to me how to write a test for this. I tried copying
require-baseurl
intorequire-loader
, but I can't get the new test to run with no modifications.output from: https://github.com/AsaAyers/grunt-template-jasmine-requirejs/commit/af02ba802f72cf995e29c82597fb79ca01b000e9