Skip to content

Commit

Permalink
Add notifications for rebuild and server restart
Browse files Browse the repository at this point in the history
  • Loading branch information
tadatuta committed Nov 27, 2016
1 parent dac656a commit 64f8f88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"watch": [
"server"
],
"events": {
"start": "echo 'Server started' | notify -t bem-express",
"restart": "echo 'Server started' | notify -t bem-express",
"crash": "echo 'Server failed to start :(((((((((((((((' | notify -t bem-express"
},
"env": {
"NODE_ENV": "development"
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"enb-borschik": "^2.4.0",
"enb-js": "^1.1.0",
"enb-stylus": "^2.3.2",
"node-notifier": "^4.6.1",
"nodemon": "^1.9.2",
"ym": "^0.1.2"
},
Expand All @@ -45,7 +46,7 @@
"postinstall": "npm run deps",
"deps": "bower i",
"make": "enb make",
"watch": "chokidar '*.blocks/**' -c 'npm run make'"
"watch": "chokidar '*.blocks/**' --initial -c 'enb make && notify -t bem-express -m Built'"
},
"private": true
}

0 comments on commit 64f8f88

Please sign in to comment.