dylang / grunt-notify

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

Add ability to disable custom notification individually #98

Open stevebrownlee opened 9 years ago

stevebrownlee commented 9 years ago

When working in a team that has custom notifications for some tasks, e.g.

grunt.registerTask("purge", ["clean", "notify:cleaned"]);
grunt.registerTask("default", ["lint", "style", "copy", "notify:build"]);

Some team members may not want to see some, or all, notifications, so this adds the ability to turn off notifications individually.

module.exports = {
  cleaned: {
    options: {
      enabled: false,
      title: "My Project",
      message: "Project assets cleaned"
    }
  },
  build: {
    options: {
      enabled: true,
      title: "My Project",
      message: "Project successfully built"
    }
  }
};