Skip to content

Node.gitignore include support for SvelteKit, Vite, Firebase, and .env.example #4298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

taronaeo
Copy link

Reasons for making this change:

  1. SvelteKit - Upon running npm run build / yarn build, Vite generates a .svelte-kit folder that should not be part of the Git repository.
  2. .env.example - Examples of environment files should be part of the Git repository for setup and reference.
  3. Vite - Vite may generate temporary log files in the project that may be accidentally committed.
  4. Firebase - firebase-tools generates cache directory .firebase to speed up build processes. Not strictly needed in the Git repository.

Links to documentation supporting these rule changes:

  1. Firebase - https://stackoverflow.com/a/52131191

1. SvelteKit - added ignore for cache directory
2. .env.example - included for documentation
3. Vite - added ignore for log files
4. Firebase - added ignore for cache directory
@cyber-amr
Copy link

Second case (.env.example) should be fixed by #4234

Copy link

github-actions bot commented Jun 9, 2025

This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open 😄

@github-actions github-actions bot added the stale label Jun 9, 2025
@taronaeo taronaeo requested a review from a team as a code owner June 10, 2025 03:56
@github-actions github-actions bot removed the stale label Jun 12, 2025
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.

2 participants