diff --git a/Gruntfile.js b/Gruntfile.js index 6758b13..37d9a5a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -3,8 +3,18 @@ module.exports = (grunt) => { grunt.loadNpmTasks('grunt-execute'); grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-notify'); grunt.initConfig({ + notify: { + watch: { + options: { + message: 'grunt watch Complete', + title: 'flant-statusmap-panel rebuilded', + duration: 2 + } + } + }, clean: ['dist'], @@ -25,7 +35,7 @@ module.exports = (grunt) => { watch: { rebuild_all: { files: ['src/**/*', 'plugin.json'], - tasks: ['default'], + tasks: ['default', 'notify:watch'], options: { spawn: false, livereload: true diff --git a/package.json b/package.json index c9ae7a7..57e9881 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "grunt-contrib-uglify": "^3.0.1", "grunt-contrib-watch": "^1.0.0", "grunt-execute": "^0.2.2", + "grunt-notify": "^0.4.5", "grunt-systemjs-builder": "^1.0.0", "load-grunt-tasks": "^3.5.2" },