Documentation
¶
Overview ¶
Package adminruntime vendors the public @w17/admin-runtime SPA framework into a consuming project. The runtime source lives at `sdk/ts/admin-runtime` (public FE SDK, mirrors sdk/go); `make sync-admin-runtime-w17ctl` copies it under `embed/admin-runtime/` (gitignored, node_modules/dist excluded, regenerated every build) so this PUBLIC client ships it embedded — no npm, no private srcgo, no round-trip through the console. When a codegen run emits an admin bundle, w17ctl materialises this tree into the project's `w17/admin-runtime/`, which the generated spa/package.json + Dockerfile reference with a local `file:` path. The consumer's Docker build then npm-installs + vite-builds the SPA and the admin Go binary embeds `spa/dist` (`//go:embed`) — the deployed artifact is a single standalone binary with zero JS/TS runtime dependency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteTo ¶
WriteTo materialises the embedded admin-runtime source tree into dstDir (e.g. `<project>/w17/admin-runtime`). Files are overwritten; the tree is small + stable so stale extras are not pruned. Only source is embedded — node_modules / dist are (re)produced by the consumer's build, not shipped.
Types ¶
This section is empty.