From c0f0d12f96e63a9adcd7c762ce10c6dedf8eb8b2 Mon Sep 17 00:00:00 2001 From: Thomas Broadley Date: Thu, 29 Oct 2015 16:11:51 +0900 Subject: [PATCH] 'grunt lint' now works on Windows --- grunt/tasks/eslint.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/grunt/tasks/eslint.js b/grunt/tasks/eslint.js index 60a48f22d3..4f364a6d90 100644 --- a/grunt/tasks/eslint.js +++ b/grunt/tasks/eslint.js @@ -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) {