Live Reload & Watching
Live reload watches your source package and repeats the linking process whenever files change. Use it while developing so the consumer project always reflects the latest code.
What the watcher does
Section titled “What the watcher does”- Monitors the source folder for file changes.
- Skips paths listed in
.gitignoreto reduce noise. - Waits for a short debounce window before firing another build.
How jobs are queued
Section titled “How jobs are queued”- Each change schedules a new link, but Oink runs one job at a time.
- If another change arrives mid-run, Oink drops older pending work and keeps only the newest request.
- Logs still appear in the terminal, and desktop notifications confirm the result.
Debounce rules
Section titled “Debounce rules”- The default debounce is
200milliseconds. - Passing
--debounce <ms>increases the delay. Values below200are clamped to keep the system stable.
Tips for smooth runs
Section titled “Tips for smooth runs”- Pair
--livereloadwith--repromptonly when you want Oink to restart after finishing a run. - Ensure
gitis available. Without it, Oink cannot honour.gitignore, and every change triggers a rebuild.
One-off linking
Section titled “One-off linking”Skip --livereload when you only need a single link. Oink will run once and exit.