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 .bal and .toml files 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

Copy
bal tool pull nalaka/auto_reset

Usage

Use exactly like nodemon - just prefix your Ballerina command:

Copy
# 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

Copy
# Start your service with auto-restart
ballerimon bal run service.bal

# Edit your .bal files and watch automatic restarts! 🎉

How It Works

  1. Monitors current directory for .bal and .toml file changes
  2. Automatically stops current Ballerina process when changes detected
  3. Waits 1 second for additional changes (debouncing)
  4. Restarts your application with the same command
  5. 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!

Import

import nalaka/auto_reset;Copy

Other versions

Metadata

Released date: about 1 year ago

Version: 0.1.1

License: MIT


Compatibility

Platform: any

Ballerina version: 2201.12.3

GraalVM compatible: Yes


Pull count

Total: 1

Current verison: 0


Weekly downloads


Source repository


Keywords

auto-restart

development

nodemon

file-watcher

cli


Contributors