Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sahilrajput03/watchall
A custom watch and run facility based on inotifywait, for linux and macos.
https://github.com/sahilrajput03/watchall
Last synced: about 1 month ago
JSON representation
A custom watch and run facility based on inotifywait, for linux and macos.
- Host: GitHub
- URL: https://github.com/sahilrajput03/watchall
- Owner: sahilrajput03
- Created: 2022-01-07T18:12:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T09:46:27.000Z (about 3 years ago)
- Last Synced: 2024-11-09T17:56:34.129Z (2 months ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
This all is inspired from Stackoveflow's answer [here](https://superuser.com/a/181543/776589).
## Goal:
- To make a service similar to [`nodemon`](https://github.com/remy/nodemon) so nobody needs to install node just for the file watching service.
- Since the only dependency is [`inotifywait`](https://www.google.com/search?q=inotifywait) so we are customise this utility as I want specifically.## Usage:
`watchAll -h` or `watch --help` also shows below help message.
```bash
watchAll node Program.js
watchAll bash Program.sh
watchAll python Program.py
watchAll javac Program.java
```## Todo
- Add `./watchall node app.js` facility by checking if the argument includes the extension .sh to identify if its bash script.
- Add a debug mode i.e., `-d` so the help logs will be printed in that case only.
- Add a `-f` flag to watch only for that file only, i.e., currently I am using `-r` in `inotifywait` to watch over current directory and subdirectories recursively.
- Add exception to ignore watching for the `node_modules` by default.