Watch and execute command.
Install rewatch with npm:
$ npm install rewatch -g
It is pretty simple, get the help menu:
$ rewatch -h
Usage:
rewatch [files..] -c "[command]"
Options:
-c, --command=<command> a shell command
-i, --interval=[ms] interval micro seconds
-v, --version print the version of vc
-h, --help display this message
Examples:
$ rewatch *.js foo.css -c "make build"
$ rewatch *.js foo.css -c "make build" -i 500
2014-02-09 0.2.2
Console.log the command.
2014-01-22 0.2.1
Bugfix for toNumber.
2014-01-22 0.2.0
Support for windows. Add options interval.
2014-01-22 0.1.1
Bugfix for context closure.
2014-01-22 0.1.0
First version.
MIT