devreload

package
v0.85.0-pre.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

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

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:

  1. Parse client routes with esbuild
  2. Generate TypeScript using live reflection (Process A has handlers)
  3. Write all artifacts to disk
  4. Wave calls Process B's reload endpoint to sync from disk

Performance: ~50ms vs ~1.5s for full rebuild

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL