I built something like this in Go a few years ago but it reloads your infrastructure when it changes, recompiles your code when it needs to, and syncs static files or interpreted files to wherever your app is running (desktop or cloud). Think of it like docker-compose but with file watching + sync + smart rebuilds. https://skaffold.dev/
How does it handle watch mode for compiled or built code?
You can tell it to just sync certain changes (e.g. syncing a javascript file to a container running webpack).