Skip to content
This repository was archived by the owner on Jul 25, 2019. It is now read-only.

Commit 29c7f5f

Browse files
committed
mostly fixing gruntfile
1 parent 812ad93 commit 29c7f5f

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
.idea
33
_SpecRunner.html
4+
.grunt
45

Gruntfile.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,14 @@ module.exports = function (grunt) {
140140
specs: [
141141
'test/jasmine/spec/*Spec.js',
142142
'test/jasmine/spec/*/*Spec.js'
143-
]
143+
],
144+
template: 'test/JqueryHandsontableRunner.tmpl',
145+
templateOptions: {
146+
css: [
147+
'lib/jQuery-contextMenu/jquery.contextMenu.css',
148+
'jquery.handsontable.css',
149+
]
150+
}
144151
}
145152
}
146153
});

test/JqueryHandsontableRunner.tmpl

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Jasmine Spec Runner</title>
6+
<% css.forEach(function(style){ %>
7+
<link rel="stylesheet" type="text/css" href="<%= style %>">
8+
<% }) %>
9+
10+
<link rel="stylesheet" media="screen" href="./lib/jQuery-contextMenu/jquery.contextMenu.css">
11+
<link rel="stylesheet" media="screen" href="./jquery.handsontable.css">
12+
13+
<% with (scripts) { %>
14+
<% [].concat(jasmine, vendor, helpers, src, specs, reporters, start).forEach(function(script){ %>
15+
<script src="<%= script %>"></script>
16+
<% }) %>
17+
<% }; %>
18+
</head>
19+
<body>
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)