From ef5375a223f1368d1407d5579983e757b53c2c87 Mon Sep 17 00:00:00 2001 From: David San Date: Sun, 26 Jul 2015 18:58:05 +0200 Subject: [PATCH] Grunt notifications options The options previously set for grunt-notify weren't enabled. I added `notify_hooks` to the task to be run. I've also removed the title in the options, the title now used is the one from package.json. --- Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 587556e1..d9c5b10c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -26,7 +26,6 @@ module.exports = function(grunt) { options: { enabled: true, max_jshint_notifications: 5, // maximum number of notifications from jshint output - title: "Thesis compilation", // defaults to the name in package.json, or will use project directory's name success: true, // whether successful grunt executions should be notified automatically duration: 2 // the duration of notification in seconds, for `notify-send only } @@ -37,5 +36,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-make'); grunt.loadNpmTasks('grunt-notify'); + grunt.task.run('notify_hooks'); + grunt.registerTask('default', ['make:' + type]); };