Skip to content

Commit 8ca1593

Browse files
committed
[task] Simplify gruntfile tasks
1 parent 19b93a4 commit 8ca1593

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

Gruntfile.js

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,13 @@
11
var grunt = require('grunt');
22

33
grunt.loadNpmTasks('grunt-contrib-jshint');
4-
grunt.loadNpmTasks('grunt-istanbul-coverage');
5-
grunt.loadNpmTasks('grunt-exec');
64

75
grunt.initConfig({
86

97
jshint: {
108
all : ['src/**/*.js', 'test/*.js', 'bin/**/*.js']
11-
},
12-
13-
exec : {
14-
coverage : {
15-
cmd : 'npm run-script istanbul',
16-
stdout : false,
17-
stderr: false
18-
}
19-
},
20-
21-
coverage: {
22-
options: {
23-
thresholds: {
24-
'statements': 90,
25-
'branches': 90,
26-
'lines': 90,
27-
'functions': 90
28-
},
29-
dir: '',
30-
root: 'coverage'
31-
}
32-
},
9+
}
3310

3411
});
3512

36-
37-
grunt.registerTask('validate', ['jshint:all', 'exec:coverage', 'coverage']);
13+
grunt.registerTask('default', ['jshint:all']);

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
},
4141
"scripts": {
4242
"test": "mocha --compilers coffee:coffee-script/register",
43-
"test-watch": "mocha -w --compilers coffee:coffee-script/register",
44-
"istanbul": "istanbul cover _mocha -w --compilers coffee:coffee-script/register"
43+
"test-watch": "mocha -w --compilers coffee:coffee-script/register"
4544
}
4645
}

0 commit comments

Comments
 (0)