chore: fix stale build.mjs comments + CLAUDE.md dashboard package map
This commit is contained in:
parent
ea5115c3a6
commit
cd6cbf9997
2 changed files with 11 additions and 7 deletions
|
|
@ -178,10 +178,13 @@ frontend/ npm workspaces (esbuild → static dist). Built
|
||||||
exporting { create, linkify }; pure JS, no IIFE
|
exporting { create, linkify }; pure JS, no IIFE
|
||||||
globals; consumed by dashboard + agent.
|
globals; consumed by dashboard + agent.
|
||||||
packages/dashboard/ @hive/dashboard SPA: src/{index.html, tabs.js,
|
packages/dashboard/ @hive/dashboard SPA: src/{index.html, tabs.js,
|
||||||
flow.html, flow.js, common.js, dashboard.css} +
|
flow.html, flow.js, logs.html, logs.js,
|
||||||
|
common.js, stream-worker.js, common.css,
|
||||||
|
dashboard.css, flow.css, logs.css} +
|
||||||
build.mjs → dist/{index.html, flow.html,
|
build.mjs → dist/{index.html, flow.html,
|
||||||
static/{tabs.js, flow.js, dashboard.css,
|
logs.html, static/{tabs.js, flow.js, logs.js,
|
||||||
stream-worker.js}}.
|
stream-worker.js, common.css, dashboard.css,
|
||||||
|
flow.css, logs.css}}.
|
||||||
packages/agent/ @hive/agent default per-container UI: src/
|
packages/agent/ @hive/agent default per-container UI: src/
|
||||||
{index, stats, screen}.html + {app, stats}.js
|
{index, stats, screen}.html + {app, stats}.js
|
||||||
+ agent.css → dist/{*.html, static/*}.
|
+ agent.css → dist/{*.html, static/*}.
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,10 @@
|
||||||
// dist/static/flow.css /flow.html only (flow chrome + composer)
|
// dist/static/flow.css /flow.html only (flow chrome + composer)
|
||||||
// dist/static/logs.css /logs.html only (log viewer sub-tabs)
|
// dist/static/logs.css /logs.html only (log viewer sub-tabs)
|
||||||
//
|
//
|
||||||
// Both JS entries inline `./common.js` (DOM helpers, Panel singleton,
|
// All three JS entries bundle `./common.js` (DOM helpers, Panel singleton,
|
||||||
// NOTIF, path linkification) — esbuild dedupes the shared module
|
// NOTIF, path linkification) independently — esbuild inlines the shared
|
||||||
// between bundles. The Rust binary mounts `dist/` as a
|
// module into each bundle rather than emitting a shared chunk (no
|
||||||
|
// `splitting: true`). The Rust binary mounts `dist/` as a
|
||||||
// `tower_http::ServeDir` fallback; the layout above keeps every URL
|
// `tower_http::ServeDir` fallback; the layout above keeps every URL
|
||||||
// the HTML files reference reachable without rewriting paths in the
|
// the HTML files reference reachable without rewriting paths in the
|
||||||
// HTML.
|
// HTML.
|
||||||
|
|
@ -37,7 +38,7 @@ const staticDir = (p) => resolve(here, 'dist', 'static', p);
|
||||||
rmSync(dist(''), { recursive: true, force: true });
|
rmSync(dist(''), { recursive: true, force: true });
|
||||||
mkdirSync(staticDir(''), { recursive: true });
|
mkdirSync(staticDir(''), { recursive: true });
|
||||||
|
|
||||||
// Bundle both JS entries. ES-module output, browser target, no minify
|
// Bundle all three JS entries. ES-module output, browser target, no minify
|
||||||
// (line-aligned source aids debugging; minification belongs in a later
|
// (line-aligned source aids debugging; minification belongs in a later
|
||||||
// follow-up once asset sizes warrant it). esbuild writes each entry
|
// follow-up once asset sizes warrant it). esbuild writes each entry
|
||||||
// to `static/<name>.js` based on the entryPoint basename.
|
// to `static/<name>.js` based on the entryPoint basename.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue