'grunt lint' now works on Windows

This commit is contained in:
Thomas Broadley
2015-10-29 16:11:51 +09:00
parent 01341480c2
commit c0f0d12f96

View File

@@ -2,10 +2,12 @@
var grunt = require('grunt');
var extension = process.platform === 'win32' ? '.cmd': '';
module.exports = function() {
var done = this.async();
grunt.util.spawn({
cmd: 'node_modules/.bin/eslint',
cmd: 'node_modules/.bin/eslint' + extension,
args: ['.'],
opts: {stdio: 'inherit'}, // allows colors to passthrough
}, function(err, result, code) {