Skip to content

chore: consolidate example app gitignores into root#90

Merged
danielrx-echo merged 2 commits into
mainfrom
daniel/unify/remove-gitignore
May 7, 2026
Merged

chore: consolidate example app gitignores into root#90
danielrx-echo merged 2 commits into
mainfrom
daniel/unify/remove-gitignore

Conversation

@danielrx-echo

@danielrx-echo danielrx-echo commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes per-app `.gitignore` files from all four example app sources (`nextjs-evm`, `nextjs-svm`, `react-evm`, `react-svm`)
  • Merges all patterns into the root `.gitignore` so the monorepo root covers the working tree
  • Adds `.gitignore` generation to `generate-example.mjs`: the script now writes a self-contained `.gitignore` into each `dist//` output directory so `.env` is excluded when `push-example.sh` runs `git add -A` in the standalone example repos
  • Fixes `.env*` handling in the root gitignore so `.env.example` files remain tracked (`!.env.example` negation)
  • `contracts/.gitignore` is unchanged (Foundry-specific: `cache/`, `broadcast/`, `lcov.info`)

Test plan

  • Verify `.env.example` files in each example app are still tracked: `git check-ignore -v examples/framework/**/.env.example`
  • Verify `.env` and `.env.local` are ignored in example app dirs
  • Run `pnpm examples:generate` and confirm `dist//.gitignore` is written with correct content
  • Confirm `dist//.env` would be excluded by that `.gitignore` before push

@danielrx-echo
danielrx-echo marked this pull request as ready for review May 7, 2026 10:07
@danielrx-echo
danielrx-echo merged commit 561b531 into main May 7, 2026
8 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.

3 participants