watchrun
v0.0.6
Published
Watching directory to ad hoc will run command
Downloads
9
Readme
watchrun
Watching directory to ad hoc will run command.
Install
$ npm install -g ngyuki/watchrun
Example
Watching current directory.
$ watchrun date
Command: [ 'date' ]
Pattern: [ '**/*' ]
Update file by other console.
$ touch ./README.md
date
command is run on first console.
$ watchrun ./ -- date
Command: [ 'date' ]
Waiting... changed README.md
Thu Apr 7 22:51:02 JST 2016
Waiting...
Use Shell
watchrun does not use shell to run command. Therefore, the following does not work.
watchrun 'gcc a.c && ./a.out'
Please use -c
option of bash as below.
watchrun bach -c 'gcc a.c && ./a.out'