From 1cc4e4625e01e11c3b73171d5d20767ceef002c7 Mon Sep 17 00:00:00 2001 From: iris Date: Sat, 12 Sep 2026 12:07:03 +0200 Subject: [PATCH] swarm-ui: trim build.mjs's top comment under the 30-line convention mara flagged (PR #4297) that the comment-block lint doesn't catch this file at all -- check-comment-blocks.sh (and check-issue-refs.sh) scope to a fixed git ls-files extension list that omits .mjs. That's a real gap (dashboard/build.mjs already has a 49-line block, pre-existing), tracked separately -- but the fix here is to just respect the 30-line convention regardless of whether the lint enforces it on this extension. Cut the redundant per-file output-layout table (the code below already names every output path) and kept only the genuinely non-obvious decisions -- no content lost, verified against a plain awk run of the lint's own line-counting logic. --- frontend/packages/swarm-ui/build.mjs | 83 +++++++++------------------- 1 file changed, 25 insertions(+), 58 deletions(-) diff --git a/frontend/packages/swarm-ui/build.mjs b/frontend/packages/swarm-ui/build.mjs index f14bb7da..251430cd 100644 --- a/frontend/packages/swarm-ui/build.mjs +++ b/frontend/packages/swarm-ui/build.mjs @@ -1,66 +1,33 @@ -// esbuild build for @hive/swarm-ui (project-bootstrap scope). Output -// layout (`dist/`): +// esbuild build for @hive/swarm-ui (project-bootstrap scope). Bundles +// main.tsx + its companion CSS, theme.css, and swarm-ui.css into +// `dist/static/`, content-hashed (`[name]-[hash]`) so a redeploy's new +// bundle gets a new URL, then rewrites those real URLs into index.html +// and sw.js. See each output file's own name in the code below for what +// it's for — not repeated here to avoid this comment drifting out of +// sync with the actual build steps. // -// dist/index.html served at GET / — its asset / -//