Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/donmccurdy/watch-exec
Runs a specified command when any files in the target directory change.
https://github.com/donmccurdy/watch-exec
Last synced: 2 days ago
JSON representation
Runs a specified command when any files in the target directory change.
- Host: GitHub
- URL: https://github.com/donmccurdy/watch-exec
- Owner: donmccurdy
- License: mit
- Archived: true
- Created: 2015-09-03T01:20:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-25T00:19:37.000Z (over 8 years ago)
- Last Synced: 2024-09-07T00:17:16.262Z (27 days ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# watch-exec
Run a specified command when any files in the target directory change.
## Installation
```
$ npm install -g watch-exec
```## Usage
```
$ watch-exec -c [command] -w [path]
```## Notifications
To use the `--notify` flag for desktop notifications when the command completes or fails, you will need to have Growl notifications available to NodeJS.
* Mac OS X (Darwin): `brew install terminal-notifier`
* Ubuntu (Linux): `sudo apt-get install libnotify-bin`
* Windows:
1. Download and install [Growl for Windows](http://www.growlforwindows.com/gfw/default.aspx).
2. Download [growlnotify](http://www.growlforwindows.com/gfw/help/growlnotify.aspx) and (*important*) unpack it to a folder in your path.> If these instructions are not working correctly, check the [installation steps for *node-growl*](https://github.com/tj/node-growl#installation), which is used internally by *watch-exec*.
Thanks to [@naholyr](https://twitter.com/naholyr) for adding support for notifications!