MDL-52591 grunt: make shifter task respect --no-color
authorDan Poltawski <dan@moodle.com>
Tue, 22 Dec 2015 18:34:25 +0000 (18:34 +0000)
committerDan Poltawski <dan@moodle.com>
Tue, 22 Dec 2015 18:37:27 +0000 (18:37 +0000)
Gruntfile.js

index dcc22a8..665bb44 100644 (file)
@@ -114,6 +114,10 @@ module.exports = function(grunt) {
                 args.push('--lint-stderr');
             }
 
+            if (grunt.option('no-color')) {
+                args.push('--color=false');
+            }
+
             var execShifter = function() {
 
                 shifter = exec("node", args, {