mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #220] [MERGED] feat: add /dist/ to .gitignore during vinext init #396
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/220
Author: @vikas5914
Created: 3/1/2026
Status: ✅ Merged
Merged: 3/3/2026
Merged by: @southpolesteve
Base:
main← Head:feat/init-gitignore📝 Commits (2)
f5fb22efeat: add /dist/ to .gitignore during vinext init3588cc3fix: broaden .gitignore duplicate check to cover dist/ and dist variants📊 Changes
2 files changed (+152 additions, -2 deletions)
View changed files
📝
packages/vinext/src/init.ts(+40 -2)📝
tests/init.test.ts(+112 -0)📄 Description
Summary
vinext initnow adds/dist/to.gitignore(Step 6 in the init flow).gitignoreif it doesn't exist, appends the entry if missing, skips if already present.gitignoreentriesChanges
packages/vinext/src/init.ts: AddedupdateGitignore()function, wired intoinit()as Step 6, addedupdatedGitignoretoInitResult, added summary log linetests/init.test.ts: Added 8 new tests — 5 unit tests forupdateGitignore()and 3 integration tests for the fullinitflowWhy
vite buildoutputs to/dist/by default. Without this entry in.gitignore, users who runvinext initand then build will end up with build artifacts tracked in git.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.