Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #52 - Change contexts temp value according jasmine script sources #53

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/template-jasmine-requirejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ exports.process = function(grunt, task, context) {
// Remove baseUrl and .js from src files
context.scripts.src = grunt.util._.map(context.scripts.src, getRelativeModuleUrl);

// Reset temp value depending on jasmine sources:
if (context.scripts.jasmine.length > 0) {
var tempPrefix = context.scripts.jasmine[0].match(/^(.*)\.grunt/);
if (tempPrefix && tempPrefix.length === 2) {
context.temp = context.temp.replace(/\.grunt/, tempPrefix[1] + '.grunt');
}
}

// Prepend loaderPlugins to the appropriate files
if (context.options.loaderPlugin) {
Expand Down