Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions Astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
node_modules/
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This template file is named Astro without the .gitignore suffix, which is inconsistent with the rest of this repository’s templates (e.g., Nextjs.gitignore, Angular.gitignore). This likely prevents it from being discovered/used by template tooling and by GitHub’s template chooser. Rename the file to Astro.gitignore.

Copilot uses AI. Check for mistakes.
/triage/
/.compiler/
Comment on lines +2 to +3
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These ignore rules appear to be specific to the withastro/astro monorepo (e.g., /triage/, /.compiler/) rather than files generated by typical Astro projects. Including repo-internal directories in a general-purpose Astro template can cause unrelated user folders to be ignored unintentionally; consider removing these entries from the template.

Suggested change
/triage/
/.compiler/

Copilot uses AI. Check for mistakes.
dist/
temp/
*.tsbuildinfo
.DS_Store
.vercel
.netlify
_site/
.astro/
scripts/smoke/*-main/
scripts/memory/project/src/pages/
benchmark/projects/
benchmark/results/
test-results/
Comment on lines +12 to +16
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These patterns (scripts/..., benchmark/..., test-results/) look specific to Astro’s own repository/test setup rather than a consumer Astro application. To keep this template broadly applicable (per repo README guidance on scope), drop repo-internal paths and keep only ignores that are commonly produced by Astro projects.

Suggested change
scripts/smoke/*-main/
scripts/memory/project/src/pages/
benchmark/projects/
benchmark/results/
test-results/

Copilot uses AI. Check for mistakes.
*.log
package-lock.json
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring package-lock.json by default is risky for typical Astro apps because lockfiles are commonly committed to ensure reproducible installs in CI and across developers. Unless Astro explicitly recommends ignoring lockfiles for end-user projects, this line should be removed (or at least scoped to the monorepo use case rather than a generic template).

Suggested change
package-lock.json

Copilot uses AI. Check for mistakes.
.turbo/
.eslintcache
.pnpm-store
.vscode-test/
.claude
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.claude isn’t a standard Astro-generated file/directory and doesn’t appear in any other template in this repo. Including tool-specific config like this in a general Astro template will surprise users and can hide intentionally committed configuration; it should be removed from the template.

Suggested change
.claude

Copilot uses AI. Check for mistakes.

# do not commit .env files or any files that end with `.env`
*.env
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*.env will ignore all env files, including commonly-committed examples like .env.example. Other templates in this repo typically add an allowlist exception (e.g., !.env.example) or use more targeted patterns. Consider aligning with that approach so projects can keep sample env files under version control.

Suggested change
*.env
*.env
!.env.example

Copilot uses AI. Check for mistakes.

packages/astro/src/**/*.prebuilt.ts
packages/astro/src/**/*.prebuilt-dev.ts
packages/astro/test/units/_temp-fixtures/*
!packages/astro/test/units/_temp-fixtures/package.json
packages/integrations/**/.netlify/

# exclude IntelliJ/WebStorm stuff
.idea

# ignore content collection generated files
packages/**/test/**/fixtures/**/.astro/
packages/**/test/**/fixtures/**/env.d.ts
packages/**/e2e/**/fixtures/**/.astro/
packages/**/e2e/**/fixtures/**/env.d.ts
examples/**/.astro/
examples/**/env.d.ts
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The packages/... and examples/... ignore patterns are tied to Astro’s monorepo layout and are unlikely to apply to typical Astro projects. In a generic Astro template, these broad paths can accidentally match legitimate user directories named packages/examples and hide tracked files. Recommend removing these repo-specific entries and keeping only project-generated artifacts (e.g., .astro/, dist/, logs).

Suggested change
examples/**/env.d.ts

Copilot uses AI. Check for mistakes.

# make it easy for people to add project-specific Astro settings that they don't
# want to share with others (see
# https://github.com/withastro/astro/pull/11759#discussion_r1721444711)
*.code-workspace
packages/astro/e2e/fixtures/cloudflare/.wrangler/deploy/config.json
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ignore rule targets an extremely specific file path inside Astro’s own e2e fixtures (packages/astro/e2e/fixtures/...) and doesn’t belong in a general-purpose Astro project template. Keeping such a specific path in a public template adds noise and can confuse consumers; please remove it.

Suggested change
packages/astro/e2e/fixtures/cloudflare/.wrangler/deploy/config.json

Copilot uses AI. Check for mistakes.
Loading