0.0.3 • Published 9 years ago

watch-then-cli v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Watch ... Then ...

I often need a simple file watcher that just checks for changes in a file then executes something and preferrably without having to write a complicated g(ulp|runt)file for the task, so i created this thing, just install it with NPM:

npm install -g watch-then-cli

Then use it to watch for changes.

watch filemask {more filemasks ...} then "command" {more commands to run...}

Examples

Watching for source file changes, then running make then executing the application:

watch src/*.cpp include/*.h then "make compile && ./myprogram"

Watching for when a graphviz document changes and generate a png of it and then showing it:

watch myfile.gv then "graphviz myfile -Tpng myfile.gv myfile.png" "open myfile.png"
0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago