Skip to content

Instantly share code, notes, and snippets.

@deepsweet
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save deepsweet/38d87035c32decc93cac to your computer and use it in GitHub Desktop.

Select an option

Save deepsweet/38d87035c32decc93cac to your computer and use it in GitHub Desktop.

Revisions

  1. Kir Belevich revised this gist Oct 16, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions quiet-grunt-newer
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    module.exports = function(grunt) {
    // https://github.com/tschaub/grunt-newer/issues/52
    // https://github.com/gruntjs/grunt/issues/895
    var origLogHeader = grunt.log.header;
    grunt.log.header = function(msg) {
  2. Kir Belevich revised this gist Oct 16, 2014. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions quiet-grunt-newer
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    'use strict';

    module.exports = function(grunt) {
    // https://github.com/gruntjs/grunt/issues/895
    var origLogHeader = grunt.log.header;
    grunt.log.header = function(msg) {
    if (!/newer(-postrun)?:/.test(msg)) {
  3. Kir Belevich created this gist Oct 16, 2014.
    12 changes: 12 additions & 0 deletions quiet-grunt-newer
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    'use strict';

    module.exports = function(grunt) {
    var origLogHeader = grunt.log.header;
    grunt.log.header = function(msg) {
    if (!/newer(-postrun)?:/.test(msg)) {
    origLogHeader.apply(this, arguments);
    }
    };

    // ...
    };