Skip to content

Commit

Permalink
chore(grunt): add silent mode to grunt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tivie committed Jul 11, 2015
1 parent 1c8c928 commit f9cf0e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit f9cf0e6

Please sign in to comment.