-
Notifications
You must be signed in to change notification settings - Fork 11
/
Gruntfile.js
43 lines (38 loc) · 1.01 KB
/
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
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: ['Gruntfile.js', 'src/*.js', 'test/*.js']
},
mochacov: {
coveralls: {
options: {
coveralls: {
serviceName: 'travis-ci'
}
}
},
coverage: {
options: {
reporter: 'html-cov',
output: 'coverage/report.html'
}
},
test: {
options: {
reporter: 'spec'
}
},
options: {
ui: 'exports',
'no-colors': true,
'files': 'test/*.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-cov');
// Default task(s).
grunt.registerTask('test', ['jshint', 'mochacov:test', 'mochacov:coverage']);
grunt.registerTask('travis', ['jshint', 'mochacov:test', 'mochacov:coveralls']);
grunt.registerTask('default', ['test']);
};