lets-run

Run a command when a certain file exists, and/or watch files to rerun on changes

MIT License

Stars
47
Committers
2

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.


lets-run

Install

npm i lets-run -D

Usage

Run a command and watch files to rerun on changes:

lets-run "node dist/server.js" --watch "dist"

In a monorepo where one package depends on the output files of another package, you can use --on-path-exists <path> flag:

lets-run "node dist/server.js" \
    --watch "dist" \
    --watch "../packages/another-package/dist" \
    --on-path-exists "../packages/another-package/dist"

Sponsors

License

MIT © EGOIST