From f9cf0e607f816cef70ae8fa12b573e8215db97e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Sat, 11 Jul 2015 19:12:04 +0100 Subject: [PATCH] chore(grunt): add silent mode to grunt Grunt output can be very annoying. This adds the option to quite Grunt with the '-q' flag. When ran with '-q', grunt will only output dots for each task action ran successfully and the error message if something goes wrong. --- Gruntfile.js | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index f74559a..dfe5993 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,6 +4,10 @@ module.exports = function (grunt) { + if (grunt.option('q') || grunt.option('quiet')) { + require('quiet-grunt'); + } + // Project configuration. var config = { pkg: grunt.file.readJSON('package.json'), diff --git a/package.json b/package.json index 7c24a90..4f1f5f5 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "grunt-simple-mocha": "^0.4.0", "js-beautify": "^1.5.6", "load-grunt-tasks": "^3.2.0", + "quiet-grunt": "^0.2.3", "sinon": "^1.14.1", "source-map-support": "^0.2.9" }