Ignore generated route tree in app gitignores#460
Conversation
|
Too many files changed? Review this PR in Change Stack to see how the pieces fit before you dive in. Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughReact and Solid framework templates in the project generator now exclude the generated ChangesGenerated Route Tree Gitignore
🎯 1 (Trivial) | ⏱️ ~3 minutes
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
packages/create/tests/framework-template.test.tsParsing error: "parserOptions.project" has been provided for Comment |
Summary
Adds
src/routeTree.gen.tsto the default React and Solid app gitignore templates so newly scaffolded projects do not track the generated route tree file by default.Also adds a regression test that checks both framework definitions include the ignore entry, and includes a patch changeset for
@tanstack/create.Why
Users frequently end up with the generated route tree in git because the scaffolded
.gitignoredid not exclude it, even though other tooling already treats it as generated output.Validation
pnpm --filter @tanstack/create exec vitest run tests/framework-template.test.tspnpm --filter @tanstack/create test--no-verifyafter that validated output.Summary by CodeRabbit
Release Notes
.gitignorein React and Solid app templates to automatically ignore generated route tree files.gitignoreconfigurations are properly applied to generated projects