feat(01-03): add summer dev watch rebuild loop

- Watch app sources with fsnotify, debounce, and one serialized build.App
- Restart the child only after a successful build and print rebuild latency
- Ignore generated app files and reap the child on cancellation
This commit is contained in:
Jakub Zych
2026-09-16 13:59:43 +02:00
parent a6004e490f
commit 270b7f1e87
6 changed files with 468 additions and 4 deletions

2
go.mod
View File

@@ -5,6 +5,7 @@ go 1.27.0
toolchain go1.27.0
require (
github.com/fsnotify/fsnotify v1.10.1
github.com/knadh/koanf/parsers/yaml v1.1.1
github.com/knadh/koanf/providers/confmap v1.0.1
github.com/knadh/koanf/providers/env/v2 v2.0.1
@@ -15,7 +16,6 @@ require (
)
require (
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/knadh/koanf/maps v0.1.2 // indirect