dylang / grunt-notify

Automatic Notifications when Grunt tasks fail.
https://npmjs.org/package/grunt-notify
MIT License
921 stars 73 forks source link

Can't disable plugin #87

Open pedrocatre opened 10 years ago

pedrocatre commented 10 years ago

I'm currently getting a lot of notifications that I can't address right now, and they are getting in the way of my work. So I wanted to disable the plugin for a while.

When I saw:

notify_hooks: {
    options: {
      enabled: true,
      max_jshint_notifications: 5, // maximum number of notifications from jshint output
      title: "Project Name", // defaults to the name in package.json, or will use project directory's name
      success: false, // whether successful grunt executions should be notified automatically
      duration: 3 // the duration of notification in seconds, for `notify-send only
    }
  }

I believed "enabled" was related to the plugin, but it turns out it is related to the options (if this options override the defaults or not). Is there a way to disable the plugin for everything? What about disabling the plugin for certain commands?

If there is no way do you think this would be useful? Thanks.