Skip to content

fix(convert): anchor /dist in the site .gitignore - #11

Merged
ethanplusai merged 1 commit into
mainfrom
fix/site-gitignore-dist
Oct 23, 2026
Merged

ethanplusai merged 1 commit into
mainfrom
fix/site-gitignore-dist

Conversation

@ethanplusai

Copy link
Copy Markdown
Owner

What changed

The site template's .gitignore had a bare dist, meant for Astro's build output. It also ignored every public/**/dist/ folder, where WordPress themes and plugins keep their built scripts (wp-content/themes/<theme>/dist/, wp-includes/js/dist/, plugin dist/ builds). It is now anchored as /dist.

Why it matters: vercel deploy from the CLI uploads files from disk, so previews had those scripts, but a Git-connected build of main did not. On the angrybirds.com conversion, 75 files were missing in production (the theme's frontend.js, GSAP, WordPress hooks and i18n, theme fonts and favicons), so the theme scripts returned 404 there. The site fix is https://github.com/ethanplusai/angrybirds-com/pull/4.

  • skills/convert-site/templates/site/.gitignore: /dist, with a comment on why it is anchored.
  • test/convert/init-site.test.mjs: a scaffolded site tracks public/wp-content/themes/x/dist/app.js and still ignores the root dist/.
  • skills/convert-site/references/hosting-vercel.md: one line on the difference between CLI and Git builds.

This commit was pushed to #6's branch after #6 had been squash-merged, so it never reached main; this PR carries it on its own.

Checks

npm test: 845 tests pass. npm run hygiene: OK.

🤖 Generated with Claude Code

…heme and plugin scripts are tracked

A bare dist line also ignored wp-content/themes/<theme>/dist/, wp-includes/js/dist/ and plugin
builds under public/. CLI deploys upload from disk, so previews worked, but a Git build of main
had none of those files and the theme scripts 404'd in production.
@ethanplusai
ethanplusai merged commit e551e97 into main Oct 23, 2026
4 checks passed
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