gabriel / musehub public
refactor BREAKING task/frontend-src-structure #1 / 1
gabriel · 64 days ago · Apr 10, 2026 · Diff

refactor: move frontend source from static/js+scss to src/ts+scss

TypeScript and SCSS source files no longer live inside static/. static/ is for compiled artifacts only — files that are ready to serve.

- src/ts/ — TypeScript source (compiled to static/app.js via esbuild) - src/scss/ — SCSS source (compiled to static/app.css via sass) - static/ — compiled output only; no source files

Also deleted 4 dead page modules with no corresponding templates: commit.ts, graph.ts, insights.ts, view.ts — removed their imports and registrations from app.ts. Bundle shrank by 124kb.

Fixed all pre-existing TypeScript errors: - Removed conflicting declare global block from explore.ts - Added initRepoNav and authHeaders to the canonical Window interface in musehub.ts

Updated: package.json, tsconfig.json, AGENTS.md, docs/guides/frontend-assets.md.

sha256:fbd6a93ed2655fba7e9652d8c3449c2c7720bfdd59a72c301365dfce38658a6f sha
sha256:655a0798f27212455517f61f0831123bd2eb7c1c4ee65105f4e316ff09af72c8 snapshot
← Older Oldest on task/frontend-src-structure
All commits
Newer → Latest on task/frontend-src-structure

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:fbd6a93ed2655fba7e9652d8c3449c2c7720bfdd59a72c301365dfce38658a6f --body "your comment"