Skip to content

WarmLoader - a simple filewatcher and autocompiler

Notifications You must be signed in to change notification settings

anAndjel/WarmLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WarmLoader – Instant Build & Run on File Changes πŸš€

WarmLoader is a blazing-fast, lightweight CLI tool that watches your source code and automatically builds and runs your project whenever you make changes. Perfect for C++ developers (or any language with build scripts) who hate the repetitive make && ./app cycle.

Spend less time building and more time creating. πŸ’»βœ¨


Features ✨

  • 🟒 Automatic build & run on file changes
  • 🟑 Debounced detection – avoids multiple rebuilds on rapid edits
  • πŸ”Ή Works with custom build and run commands (--build, --run)
  • πŸ”Ή Directory or file watching (supports recursive watching)
  • ⚑ Lightweight C++ CLI – minimal dependencies, blazzing fast ⚑⚑⚑

Installation ⚑

1️⃣ Clone the repository

git clone https://github.com/anAndjel/WarmLoader.git

2️⃣ Build WarmLoader

cd WarmLoader
mkdir build && cd build
cmake ..
make

3️⃣ Move the binary into your PATH

sudo cp warmloader /usr/local/bin/

Now you can run warmloader from anywhere in your system.


Usage πŸ“¦

Basic command

From your project's root directory:

warmloader <file-or-directory> --build <build-script> --run <run-script>

Example:

warmloader src/ --build ./build.sh --run ./run.sh

Parameters:

  • <file-or-directory> – file or folder to watch for changes
  • --build <script> – your build script or command
  • --run <script> – your run script or command

WarmLoader will automatically detect changes, rebuild your project, and restart it β€” no manual relaunching required.


Help

warmloader --help

Displays usage instructions and available options.


Tips & Notes πŸ’‘

  • ⚠️ Avoid watching your build directory to prevent infinite rebuild loops.
  • Works with any build system (Make, CMake, custom scripts).
  • Debounce is ~700ms to prevent multiple rebuilds from rapid saves.
  • Always ensure your --run command points to a valid executable or script.

Why WarmLoader? πŸš€

  • Stop wasting time on repetitive build/run cycles
  • Focus on writing code and testing ideas instantly
  • Lightweight and fast β€” perfect for hobby projects, student work, or professional dev environments

Features at a glance

Feature Description
Automatic rebuild Detects source changes and rebuilds automatically
Run after build Kills previous run and starts a new executable
Recursive watch Watches directories recursively
Custom commands Works with any build/run script or command
Lightweight Minimal dependencies, fast performance

WarmLoader β€” your project, always running, always up-to-date. πŸ’»βœ¨

About

WarmLoader - a simple filewatcher and autocompiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published