Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.