Last active
August 29, 2015 14:07
-
-
Save deepsweet/38d87035c32decc93cac to your computer and use it in GitHub Desktop.
ugly hack to suppress too verbose grunt-newer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | |
if (!/newer(-postrun)?:/.test(msg)) { | |
origLogHeader.apply(this, arguments); | |
} | |
}; | |
// ... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will remove it from the 'time-grunt' output as well
if (prevTaskName && prevTaskName !== name && prevTaskName.indexOf('newer') < 0)
if (prevTaskName && prevTaskName.indexOf('newer') < 0) {