cloudchen / grunt-template-jasmine-requirejs

RequireJS template for grunt-contrib-jasmine task
111 stars 97 forks source link

Support grunt-contrib-jasmine 1.2.0 and newer #95

Open prantlf opened 5 years ago

prantlf commented 5 years ago

I left upgrading grunt-contrib-jasmine to the most recent version out of #94. This PR bases on #94 and uses a different way to copy files to temp directory, compatible with both older and newer versions, than grunt-contrib-jasmine 1.2.0.

grunt-contrib-jasmine broke their interface between 1.0.3 and 1.2.0 without increasing the major version number. (!!!) The method task.copyTempFile does not copy the source file to the temp directory any more. You would have provide the full path to the temp directory yourself. It made this method a pure wrapper of grunt.file.copy with no added functionality and a confusing name. This should be discussed with grunt-contrib-jasmine developers.