forked from pinnamur/appc-platform-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
48 lines (44 loc) · 965 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
38
39
40
41
42
43
44
45
46
47
48
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
eslint: {
target: [
'index.js',
'lib/**/*.js',
'test/*.js',
'test/conf/default.js',
'test/conf/loader.js',
'test/lib/*.js'
],
options: {
quiet: true
}
},
mochaTest: {
src: [ 'test/*.js' ],
options: {
timeout: 40000,
reporter: 'spec',
bail: true,
ignoreLeaks: false,
globals: []
}
},
kahvesi: {
src: [ 'index.js', 'lib/**/*.js', 'test/**/*.js' ]
},
appcCoverage: {
default_options: {
src: 'coverage/lcov.info',
force: true
}
}
});
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-kahvesi');
grunt.loadNpmTasks('grunt-appc-coverage');
grunt.registerTask('cover', [ 'kahvesi', 'appcCoverage' ]);
grunt.registerTask('default', [ 'eslint', 'mochaTest' ]);
};