You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(plugin-inspect): serve the SPA from a lockstep assets package (#239)
* feat(plugin-inspect): serve the SPA from a lockstep client-assets package
Pilot of the deferred-client-assets pattern: the inspector's Vue SPA now
ships in a new @devframes/plugin-inspect-client package instead of inside
the node tarball, which drops from ~409 KB (90% SPA) to ~18 KB. Its Vite
build emits into plugins/inspect/client-pkg/dist, and cli.distDir points
at a RemoteAssets declaration (package + version + resolveFrom).
In this monorepo the client package is a dev-only workspace link, so
resolveFrom short-circuits to its built dist (zero network); published
consumers get the assets on demand through devframe's caching CDN
back-proxy, or by installing the client package for an offline/air-gap UI.
Wires the nested workspace glob (plugins/*/client-pkg), turbo outputs, a
knip override for the runtime-string dependency, and updates the plugin's
test harness to resolve the source.
* refactor(plugin-inspect): name the assets package -assets, not -client
'client' is overloaded in devframe (devframe/client is the RPC client;
each plugin's ./client export is its panel script), so a package holding
prebuilt browser assets reads wrong as '…-client'. Rename
@devframes/plugin-inspect-client -> @devframes/plugin-inspect-assets and
the directory client-pkg -> assets-pkg, and adopt '${pkg.name}-assets' as
the convention for deferred SPA-asset packages.
* refactor(plugin-inspect): double-dash the assets package suffix
Separate the '--assets' companion suffix from the plugin's own name
segments: @devframes/plugin-inspect-assets -> @devframes/plugin-inspect--assets.
The '--' makes the auto-derived assets package visually distinct from a
plugin whose name legitimately ends in a single-dash segment. Convention
is now '${pkg.name}--assets'; the directory stays plugins/*/assets-pkg.
0 commit comments