Documentation
¶
Overview ¶
Package devreload owns dev-only route/watch reload orchestration for vormabuild flows.
It centralizes attempt-scoped rebuild behavior, route-manifest rollback, and deferred runtime reload metadata generation so watch callbacks and default watch-pattern setup remain thin orchestration glue.
Index ¶
- func GetDeferredFrameworkRuntimeReloadAction(v *vormaruntime.Vorma, endpoint string, warnMessage string, ...) *wavewatch.RefreshAction
- func InjectDefaultWatchPatterns(v *vormaruntime.Vorma) *waveconfig.ParsedConfig
- func InjectDefaultWatchPatternsInConfig(cfg *waveconfig.ParsedConfig, v *vormaruntime.Vorma)
- func RebuildRoutesOnly(v *vormaruntime.Vorma) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeferredFrameworkRuntimeReloadAction ¶
func GetDeferredFrameworkRuntimeReloadAction( v *vormaruntime.Vorma, endpoint string, warnMessage string, reloadTrigger string, hookContext *wavewatch.HookContext, ) *wavewatch.RefreshAction
GetDeferredFrameworkRuntimeReloadAction resolves the refresh action for a watcher-triggered runtime reload request.
func InjectDefaultWatchPatterns ¶
func InjectDefaultWatchPatterns(v *vormaruntime.Vorma) *waveconfig.ParsedConfig
func InjectDefaultWatchPatternsInConfig ¶
func InjectDefaultWatchPatternsInConfig( cfg *waveconfig.ParsedConfig, v *vormaruntime.Vorma, )
func RebuildRoutesOnly ¶
func RebuildRoutesOnly(v *vormaruntime.Vorma) error
RebuildRoutesOnly is the fast path for rebuilding when only vorma.routes.ts changes. Runs in Process A (Dev Server), which has handlers registered for type reflection.
Flow:
- Parse client routes with esbuild
- Generate TypeScript using live reflection (Process A has handlers)
- Write all artifacts to disk
- Wave calls Process B's reload endpoint to sync from disk
Performance: ~50ms vs ~1.5s for full rebuild
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.