tschaub / grunt-newer

Configure Grunt tasks to run with newer files only.
https://npmjs.org/package/grunt-newer
MIT License
945 stars 53 forks source link

Add a quiet mode #52

Open ghost opened 10 years ago

ghost commented 10 years ago

The title is explicit, a simple config line to quite mode could be awesome.

Thx for this perfect plugin

davegreenwp commented 9 years ago

Have to second this: the plugin is incredibly useful but also incredibly verbose :)

deepsweet commented 9 years ago

+1 here

deepsweet commented 9 years ago

:scream_cat:

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);
        }
    };

    // ...
};
tschaub commented 9 years ago

If I get what you're looking for, I think this would have to be an option to Grunt itself (or an override like @deepsweet's above).

davegreenwp commented 9 years ago

@deepsweet just want to thank you for this workaround!