jereo is a lightweight CLI tool that monitors a specified folder and executes a user-defined command whenever changes are detected. It's ideal for automating tasks like rebuilding, syncing, or testing during development.
- Real-time folder monitoring
- Custom command execution on file changes
- Simple and efficient setup
Ensure you have Node.js installed. Then, install jereo globally using npm:
npm install -g jereoRun jereo with the following command:
jereo <folder_path> <command><folder_path>: The path to the folder you want to monitor.<command>: The command to execute when a change is detected.
To watch the src directory and run a build script on changes:
jereo ./src "npm run build"index.js: Main executable script.controllers/: Contains modules responsible for handling file system events.customAPI/: Houses custom APIs used within the application.package.json: Project metadata and dependencies.