Skip to content

chore: base .gitignore on the Hugo and Node templates - #493

Merged
leonardoce merged 1 commit into
mainfrom
dev/remove-ds-store
Oct 21, 2026
Merged

leonardoce merged 1 commit into
mainfrom
dev/remove-ds-store

Conversation

@mnencia

@mnencia mnencia commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

The .gitignore came from the Node template chosen at repository creation, plus Go lines that do not apply. Rebuild it from the community Hugo template and the parts of the Node template that match our npm tooling, and anchor the generated directories to the repository root so they cannot hide a nested folder with the same name. Remove the tracked assets/icons/.DS_Store, which was committed before the ignore rule existed.


Sources: github/gitignore community/Golang/Hugo.gitignore and Node.gitignore. Hugo executables, Tailwind output, .env.* with .env.example kept, and the Node cache and logs are covered. The Go, Next.js, Nuxt, Gatsby, Yarn and similar patterns are dropped, since nothing here can produce them.

Checked with git check-ignore: generated files are ignored, .env.example is not, and content/public or a nested public folder is no longer hidden. git ls-files -ci --exclude-standard is empty. In a clean clone, npm run build and npm run dev leave no untracked files except package-lock.json, which #492 starts tracking.

@mnencia
mnencia requested a review from a team as a code owner October 20, 2026 19:54
@mnencia mnencia changed the title chore: remove the tracked .DS_Store file chore: clean up .gitignore Oct 20, 2026
@mnencia mnencia changed the title chore: clean up .gitignore chore: trim .gitignore and untrack .DS_Store Oct 20, 2026
@mnencia
mnencia force-pushed the dev/remove-ds-store branch 2 times, most recently from 7d363ee to 6dc0678 Compare October 20, 2026 20:06
@mnencia mnencia changed the title chore: trim .gitignore and untrack .DS_Store chore: base .gitignore on the Hugo and Node templates Oct 20, 2026
The file came from the Node template chosen at repository creation, plus
Go lines that do not apply. Rebuild it from the community Hugo template
and the parts of the Node template that match our npm tooling, and
anchor the generated directories to the repository root so they cannot
hide a nested folder with the same name. Remove the tracked .DS_Store,
which was committed before the ignore rule existed.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
@leonardoce
leonardoce enabled auto-merge (squash) October 21, 2026 07:39
@leonardoce
leonardoce merged commit 575d0f2 into main Oct 21, 2026
5 checks passed
@leonardoce
leonardoce deleted the dev/remove-ds-store branch October 21, 2026 07:40
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