Skip to content

jedwards1211/rerun

Repository files navigation

@jedwards1211/rerun

CircleCI Coverage Status semantic-release Commitizen friendly npm version

My personal more convenient version of nodemon

I wanted an easier way to rerun an arbitrary command when files change, like nodemon but more convenient, especially for non-JS projects.

For me the easiest syntax to use/remember looks like this:

rerun 'src/**.{c,h,cpp}' -- ./build.sh

Usage

yarn install @jedwards1211/rerun
rerun <files, directories, glob patterns ...> -- <command>

Any number of directories/glob patterns can be given, and any number of command arguments, they just have to be separated by --.

If you omit the --, it assumes you everything is the command and tries to intelligently watch all files that aren't .gitignored.

If you want to run a shell command, you may have to quote it.

Notes

Right now there are no options. It will SIGTERM the command before restarting if it's still running.

About

like nodemon but easier to use for running arbitrary commands

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published