forked from SOCR/BlueML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
34 lines (31 loc) · 936 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
module.exports = function(grunt) {
// Project configuration.
grunt.config.init({
env: {
test: {
NODE_ENV: 'development'
}
},
mochaTest: {
// Mocha is a Node.js testing frameworks
//src: watchFiles.mochaTests
options: {
globals: ['expect'],
reporter: 'spec',
},
all: ['test/test_mocha.js']
},
karma: {
// Karma is a JavaScript test runner
unit: {
configFile: 'karma.conf.js'
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-env');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-karma');
// Test task(s).
grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']);
};