Skip to content

Commit

Permalink
mostly fixing gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Mar 7, 2013
1 parent aa7b1df commit a814a5d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
node_modules
.idea
_SpecRunner.html
.grunt

9 changes: 8 additions & 1 deletion Gruntfile.js
Expand Up @@ -140,7 +140,14 @@ module.exports = function (grunt) {
specs: [
'test/jasmine/spec/*Spec.js',
'test/jasmine/spec/*/*Spec.js'
]
],
template: 'test/JqueryHandsontableRunner.tmpl',
templateOptions: {
css: [
'lib/jQuery-contextMenu/jquery.contextMenu.css',
'jquery.handsontable.css',
]
}
}
}
});
Expand Down
21 changes: 21 additions & 0 deletions test/JqueryHandsontableRunner.tmpl
@@ -0,0 +1,21 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<% css.forEach(function(style){ %>
<link rel="stylesheet" type="text/css" href="<%= style %>">
<% }) %>

<link rel="stylesheet" media="screen" href="./lib/jQuery-contextMenu/jquery.contextMenu.css">
<link rel="stylesheet" media="screen" href="./jquery.handsontable.css">

<% with (scripts) { %>
<% [].concat(jasmine, vendor, helpers, src, specs, reporters, start).forEach(function(script){ %>
<script src="<%= script %>"></script>
<% }) %>
<% }; %>
</head>
<body>
</body>
</html>

0 comments on commit a814a5d

Please sign in to comment.