Skip to content

chore: untrack generated base.css, build it in test/CI#58

Merged
KucharczykL merged 1 commit into
mainfrom
chore/untrack-base-css
Jun 20, 2026
Merged

chore: untrack generated base.css, build it in test/CI#58
KucharczykL merged 1 commit into
mainfrom
chore/untrack-base-css

Conversation

@KucharczykL

Copy link
Copy Markdown
Owner

Why

games/static/base.css is a Tailwind build artifact. It's listed in .gitignore (line 23), but it had been tracked since it was first committed — and .gitignore only affects untracked files, so it kept getting re-committed against intent (111 commits touched it). This came up after #57, where make css + git add base.css silently re-committed the regenerated file.

js/dist/ (the TypeScript artifact) is gitignored and untracked — that's the model base.css should follow.

What

  • git rm --cached games/static/base.css — untrack it (file stays on disk; .gitignore now actually applies).
  • Build it in the test path: nothing in make test rebuilt the CSS, so e2e/static serving relied on the committed copy. Added css (and ts) as prerequisites of the test / test-e2e make targets.
  • CI: added a Build CSS step (make css) before tests — CI previously built TS but not CSS, relying on the committed file.

Verification

Simulated a fresh checkout (rm games/static/base.css), then make check → the css prereq regenerated it and 534 tests pass.

🤖 Generated with Claude Code

base.css is a Tailwind build artifact already listed in .gitignore, but it
had been tracked since it was first committed (gitignore can't untrack an
already-tracked file), so it kept getting re-committed against intent. Untrack
it to match js/dist (the TS artifact, also gitignored + untracked).

Because nothing in the test path rebuilt it, e2e/static serving relied on the
committed copy. Add 'css' (and 'ts') as prerequisites of the test/test-e2e
make targets and a Build CSS step in CI so the stylesheet is generated before
tests run.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

@KucharczykL KucharczykL merged commit 5f3271b into main Jun 20, 2026
4 checks passed
@KucharczykL KucharczykL deleted the chore/untrack-base-css branch June 20, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant