forked from walmartlabs/fruit-loops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
39 lines (36 loc) · 839 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
/*global grunt */
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
files: [
'lib/**/*.js',
'test/**/*.js,!test/artifacts/*.js'
]
},
mochacov: {
test: {
options: {
reporter: 'spec',
grep: grunt.option('grep')
}
},
cov: {
options: {
reporter: 'html-cov',
output: 'cov.html'
}
},
options: {
require: ['./test/lib'],
files: ['test/dom/*.js', 'test/exec/*.js', 'test/jquery/*.js', 'test/*.js']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-cov');
grunt.registerTask('test', ['jshint', 'mochacov:test']);
grunt.registerTask('cov', ['mochacov:cov']);
};