Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stagas/watch-and-build
watch a list of directories and run build commands when files change
https://github.com/stagas/watch-and-build
Last synced: 14 days ago
JSON representation
watch a list of directories and run build commands when files change
- Host: GitHub
- URL: https://github.com/stagas/watch-and-build
- Owner: stagas
- License: mit
- Created: 2022-04-15T06:07:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-30T23:46:12.000Z (over 2 years ago)
- Last Synced: 2024-10-20T05:49:24.448Z (25 days ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@stagas/watch-and-buildwatch a list of directories and run build commands when files change
npm i @stagas/watch-and-build -g
pnpm add @stagas/watch-and-build -g
yarn global add @stagas/watch-and-build
## API
#
Options
src/runner.ts#L7
# constructor
(options) src/runner.ts#L16
command
= []
src/runner.ts#L10 string []
killSignal
= 'SIGTERM'
src/runner.ts#L14 Signals
paths
= []
src/runner.ts#L8 string []
timeoutSeconds
= ...
src/runner.ts#L12 number
run
(options) src/runner.ts#L54
## Credits
- [cross-spawn](https://npmjs.org/package/cross-spawn) by [André Cruz](https://github.com/moxystudio) – Cross platform child_process#spawn and child_process#spawnSync
- [decarg](https://npmjs.org/package/decarg) by [stagas](https://github.com/stagas) – decorator based cli arguments parser
- [tree-kill](https://npmjs.org/package/tree-kill) by [Peteris Krumins](http://www.catonmat.net) – kill trees of processes
## Contributing
[Fork](https://github.com/stagas/watch-and-build/fork) or [edit](https://github.dev/stagas/watch-and-build) and submit a PR.
All contributions are welcome!
## License
MIT © 2022 [stagas](https://github.com/stagas)