Notifications for grunt watch

This commit is contained in:
Ivan Mikheykin
2019-03-11 15:35:09 +03:00
parent 12492216d6
commit 8d2039bf37
2 changed files with 12 additions and 1 deletions
+11 -1
View File
@@ -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