Skip to content

Commit 2a1289e

Browse files
casabreclaude
andcommitted
chore: expand .gitignore with TypeScript/Node best practices
Cover build output (dist/build/lib/*.tsbuildinfo), test/coverage (.nyc_output/.vitest/*.lcov), all log variants, env files with an .env.example allowlist, tooling caches (.eslintcache/.turbo/.npm), .codegraph/, and editor/OS noise. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 27d7de6 commit 2a1289e

1 file changed

Lines changed: 44 additions & 8 deletions

File tree

.gitignore

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,52 @@
1-
# Dependencies
1+
# ─── Dependencies ───────────────────────────────────────────────
22
node_modules/
3+
.pnp
4+
.pnp.*
5+
jspm_packages/
36

4-
# Build output
7+
# ─── Build output ───────────────────────────────────────────────
58
dist/
9+
build/
10+
out/
11+
lib/
12+
*.tsbuildinfo
13+
.tsbuildinfo
614

7-
# Test / coverage artifacts
15+
# ─── Test / coverage artifacts ──────────────────────────────────
816
coverage/
17+
*.lcov
18+
.nyc_output/
19+
.vitest/
920

10-
# CodeGraph index
11-
.codegraph/
21+
# ─── Logs ───────────────────────────────────────────────────────
22+
logs/
23+
*.log
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
pnpm-debug.log*
28+
lerna-debug.log*
1229

13-
# Env / local
30+
# ─── Environment / secrets ──────────────────────────────────────
1431
.env
15-
.env.local
16-
*.log
32+
.env.*
33+
!.env.example
34+
35+
# ─── Caches & tooling ───────────────────────────────────────────
36+
.npm
37+
.eslintcache
38+
.cache/
39+
.turbo/
40+
*.tgz
41+
42+
# ─── CodeGraph index ────────────────────────────────────────────
43+
.codegraph/
44+
45+
# ─── Editors / OS ───────────────────────────────────────────────
46+
.vscode/*
47+
!.vscode/extensions.json
48+
!.vscode/settings.json
49+
.idea/
50+
*.swp
51+
.DS_Store
52+
Thumbs.db

0 commit comments

Comments
 (0)