1 | module.exports = function (grunt) {
|
2 |
|
3 | grunt.initConfig({
|
4 | eslint: {
|
5 | target: [ '*.js', 'lib/**/*.js', 'test/**/*.js' ]
|
6 | },
|
7 |
|
8 | mocha_istanbul: {
|
9 | coverage: {
|
10 | src: 'test',
|
11 | options: {
|
12 | timeout: 30000,
|
13 | reporter: 'spec',
|
14 | ignoreLeaks: false
|
15 | }
|
16 | }
|
17 | },
|
18 |
|
19 | clean: [ 'tmp' ]
|
20 | });
|
21 |
|
22 |
|
23 | grunt.loadNpmTasks('grunt-eslint');
|
24 | grunt.loadNpmTasks('grunt-mocha-istanbul');
|
25 | grunt.loadNpmTasks('grunt-contrib-clean');
|
26 |
|
27 |
|
28 | grunt.registerTask('default', [ 'eslint', 'mocha_istanbul:coverage', 'clean' ]);
|
29 | };
|