-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
36 lines (32 loc) · 919 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint : {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'example/*.js',
'lib/node-highcharts-exporter/*.js'
]
},
jasmine_node : {
projectRoot : ".",
requirejs : false,
forceExit : true,
jUnit : {
report : false,
savePath : "./build/reports/jasmine/",
useDotNotation : true,
consolidate : true
}
}
});
// Load all NPM tasks
['grunt-contrib-jshint','grunt-jasmine-node'].forEach(function(task){
grunt.loadNpmTasks(task);
});
// Specify task order and that
grunt.registerTask('test', ['jshint', 'jasmine_node']);
};