'grunt lint' now works on Windows
Thomas Broadley committed
Oct 29, 2015 at 16:11 UTC
c0f0d12f96e63a9adcd7c762ce10c6dedf8eb8b2
1 file changed
+3
-1
grunt/tasks/eslint.js
+3
-1
@@ -2,10 +2,12 @@
2
3
var grunt = require('grunt');
4
5
+var extension = process.platform === 'win32' ? '.cmd': '';
6
+
7
module.exports = function() {
8
var done = this.async();
9
grunt.util.spawn({
8
- cmd: 'node_modules/.bin/eslint',
10
+ cmd: 'node_modules/.bin/eslint' + extension,
11
args: ['.'],
12
opts: {stdio: 'inherit'}, // allows colors to passthrough
13
}, function(err, result, code) {