Module auto_reset
nalaka/auto_reset
0.1.1
Ballerimon - Auto-restart tool for Ballerina
The nodemon for Ballerina 🚀
Ballerimon automatically monitors your Ballerina files and restarts your application when changes are detected, streamlining your development workflow just like nodemon does for Node.js.
Features
- 🔍 Auto-monitoring: Watches
.baland.tomlfiles automatically - 🚀 Auto-restart: Instantly restarts your app when files change
- 🎯 Smart filtering: Ignores build directories and common artifacts
- ⚙️ CLI-friendly: Simple command-line interface like nodemon
- 🖥️ Cross-platform: Works on Windows, macOS, and Linux
- 📝 Beautiful output: Clean, emoji-rich console messages
Installation
bal tool pull nalaka/auto_reset
Usage
Use exactly like nodemon - just prefix your Ballerina command:
# Instead of: bal run service.bal ballerimon bal run service.bal # Instead of: bal run --debug=5005 ballerimon bal run --debug=5005 # Works with any Ballerina command ballerimon bal test ballerimon bal build
Quick Example
# Start your service with auto-restart ballerimon bal run service.bal # Edit your .bal files and watch automatic restarts! 🎉
How It Works
- Monitors current directory for
.baland.tomlfile changes - Automatically stops current Ballerina process when changes detected
- Waits 1 second for additional changes (debouncing)
- Restarts your application with the same command
- Repeats until you press Ctrl+C
Perfect For
- Web API development - Auto-restart HTTP services
- Microservices development - Monitor multiple services
- Integration testing - Auto-run tests on code changes
- General development - Eliminate manual restart cycles
This tool eliminates the tedious cycle of editing code → Ctrl+C → restart → repeat, making Ballerina development as smooth as Node.js with nodemon!