forked from lmarkus/hubot-conversation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
38 lines (36 loc) · 1.21 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
/**
* Created by lmarkus on 9/30/15.
*/
'use strict';
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
eslint: {
target: ['test/unit/*.js', 'test/utils/*.js', 'index.js', 'lib/**/*.js']
},
mocha_istanbul: {
coverUnit: {
src: 'test/unit/**/*.js',
options: {
coverageFolder: 'test/coverage/unit',
root: '.',
reportFormats: ['lcov'],
timeout: 20000,
'check-leaks': true,
ui: 'bdd',
reporter: 'spec',
check: {
statements: 100,
branches: 100,
functions: 100,
lines: 100
}
}
}
}
}
);
grunt.registerTask('default', ['test']);
grunt.registerTask('coverage', ['mocha_istanbul']);
grunt.registerTask('test', ['eslint', 'mocha_istanbul']);
};