mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-21 23:42:03 +00:00
Notifications for grunt watch
This commit is contained in:
+11
-1
@@ -3,8 +3,18 @@ module.exports = (grunt) => {
|
|||||||
|
|
||||||
grunt.loadNpmTasks('grunt-execute');
|
grunt.loadNpmTasks('grunt-execute');
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
|
grunt.loadNpmTasks('grunt-notify');
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
notify: {
|
||||||
|
watch: {
|
||||||
|
options: {
|
||||||
|
message: 'grunt watch Complete',
|
||||||
|
title: 'flant-statusmap-panel rebuilded',
|
||||||
|
duration: 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
clean: ['dist'],
|
clean: ['dist'],
|
||||||
|
|
||||||
@@ -25,7 +35,7 @@ module.exports = (grunt) => {
|
|||||||
watch: {
|
watch: {
|
||||||
rebuild_all: {
|
rebuild_all: {
|
||||||
files: ['src/**/*', 'plugin.json'],
|
files: ['src/**/*', 'plugin.json'],
|
||||||
tasks: ['default'],
|
tasks: ['default', 'notify:watch'],
|
||||||
options: {
|
options: {
|
||||||
spawn: false,
|
spawn: false,
|
||||||
livereload: true
|
livereload: true
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
"grunt-contrib-uglify": "^3.0.1",
|
"grunt-contrib-uglify": "^3.0.1",
|
||||||
"grunt-contrib-watch": "^1.0.0",
|
"grunt-contrib-watch": "^1.0.0",
|
||||||
"grunt-execute": "^0.2.2",
|
"grunt-execute": "^0.2.2",
|
||||||
|
"grunt-notify": "^0.4.5",
|
||||||
"grunt-systemjs-builder": "^1.0.0",
|
"grunt-systemjs-builder": "^1.0.0",
|
||||||
"load-grunt-tasks": "^3.5.2"
|
"load-grunt-tasks": "^3.5.2"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user