gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Add .gitignore for Astro

Open nazpickle opened this issue 8 months ago • 1 comments

Reasons for making this change

I wanted to use "npx gitignore" with my new Astro project. I then found out that there is no gitignore for Astro in this repo.

Links to documentation supporting these rule changes

I couldn't find any documentation showing the gitignore file. I used the gitignore file from the astro repo from withastro.

https://github.com/withastro/astro/blob/main/.gitignore https://github.com/withastro/astro/

If this is a new template

Link to application or project’s homepage: https://astro.build/

Merge and Approval Steps

  • [x] Confirm that you've read the contribution guidelines and ensured your PR aligns
  • [ ] Ensure CI is passing
  • [ ] Get a review and Approval from one of the maintainers

nazpickle avatar Mar 29 '26 21:03 nazpickle

Hey @devsker! This contribution doesn't follow our guidelines, since it includes patterns for files like .DS_STORE that belong in global templates.

I would recommend including the rules that are specific to Astro from your template into the node.gitignore file instead: https://github.com/github/gitignore/blob/main/Node.gitignore

Let me know what you think!

dooleydevin avatar Apr 03 '26 20:04 dooleydevin

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

github-actions[bot] avatar Jul 03 '26 16:07 github-actions[bot]