Skip to content

Commit

Permalink
Fix putting the spec file in the same directory as require.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage committed Mar 27, 2015
1 parent dad367d commit f94d9c7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,19 @@ module.exports = function(grunt) {
}
}
},
'require-outfile-same-dir': {
src: 'test/fixtures/require-baseurl/src/**/*.js',
options: {
outfile: ".grunt/grunt-contrib-jasmine/_SpecRunner.html",
specs: 'test/fixtures/require-baseurl/spec/**/*Spec.js',
template: require('./'),
templateOptions: {
requireConfig: {
baseUrl: '../../test/fixtures/require-baseurl/src/'
}
}
}
},
},
bump: {
options: {
Expand Down
4 changes: 2 additions & 2 deletions src/templates/jasmine-requirejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<% css.forEach(function(style){ %>
<link rel="stylesheet" type="text/css" href="<%= style %>">
<% }) %>

<% with (scripts) { %>
<% [].concat(vendor).forEach(function(script){ %>
<script src="<%= script %>"></script>
<% }) %>
<% }; %>

<script src="<%= temp %>/require.js"></script>
<script src="<%= temp ? temp + "/" : temp %>require.js"></script>

<% with (scripts) { %>
<% [].concat(jasmine, boot, helpers).forEach(function(script){ %>
Expand Down

0 comments on commit f94d9c7

Please sign in to comment.