forked from Countly/countly-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
37 lines (34 loc) · 784 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
37
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
//http://www.jshint.com/docs/options/
options:{
eqeqeq: false,
latedef: false,
noempty: false,
asi:true,
loopfunc:true,
shadow:true,
sub:true,
node:true,
"-W041": true,
"-W038": true,
"-W082": true
},
all: ['Gruntfile.js', 'api/api.js', 'api/lib/*.js', 'api/parts/**/*.js', 'api/utils/common.js', 'frontend/express/app.js']
},
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec',
timeout: 5000
},
src: ['test/**/*.js']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.registerTask('default', ['jshint', "mochaTest"]);
};