chore(gitignore): untrack inspect dist/index.html build artifact

index.html is regenerated by vite on every build with a new content hash,
making it permanently dirty. Only .gitkeep is needed for //go:embed to
compile on a fresh checkout. Also remove duplicate dist/* line and stale
d2 diagram ignore entries.
This commit is contained in:
pj committed 2026-04-23 00:25:41 +07:00
1 parent 229f642f54
commit baf1daff61
2 files changed
+2 -22

No files matched your search

+2 -9
View File
@@ -37,11 +37,10 @@ pkg/spec/dist/
# goreleaser local output # goreleaser local output
/dist/ /dist/
# inspect web bundle output (real bundle wired in Stage 4 via Makefile/CI). # inspect web bundle output; built by `make web-build` before go build.
# Track only the stub index.html + .gitkeep so //go:embed succeeds. # Only .gitkeep is tracked so //go:embed all:dist compiles on a fresh checkout.
/internal/inspect/dist/* /internal/inspect/dist/*
!/internal/inspect/dist/.gitkeep !/internal/inspect/dist/.gitkeep
!/internal/inspect/dist/index.html
# inspect web frontend # inspect web frontend
inspect-ui/node_modules/ inspect-ui/node_modules/
@@ -53,15 +52,9 @@ examples/folio-web/node_modules/
examples/folio-web/dist/ examples/folio-web/dist/
examples/folio-web/.vite/ examples/folio-web/.vite/
# d2 diagrams render into build/site/_assets/diagrams; keep sources only
/docs/_diagrams/*.svg
/docs/_diagrams/*.png
# coding agent files # coding agent files
.claude/ .claude/
.claude/* .claude/*
# Personal research notes # Personal research notes
/research/ /research/
internal/inspect/dist/*
-13
View File
@@ -1,13 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>sanderling inspect</title>
<script type="module" crossorigin src="/assets/index-DFpYQDqN.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BSJUf7yI.css">
</head>
<body>
<div id="root"></div>
</body>
</html>