0.2.3 • Published 8 years ago

runwatch v0.2.3

Weekly downloads
19
License
BSD-3-Clause
Repository
github
Last release
8 years ago

runwatch

watches some files, runs a thing

example

runwatch *.js -r "npm start" 

runs npm start and watches everything that matches *.js*. when any .js file changes, it will SIGINT the old process (as if you pressed C-c), and re-runs npm start

install

npm install -g runwatch

example

echo "echo \"hello\"" > test.sh
runwatch test.sh -r "bash test.sh"

now modify test.sh, and watch the script re-run!

about

heavily inspired by npm-watch, but with a few differences:

  • runs from the command line, no npm dependencies
  • uses file globs for advanaced filename matching
  • when the watched script errors, it prints only the error, with no npm erroring boilerplate (!)
  • no nodemon dependencies - just child_process.spawn()

license

BSD

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago