Skip to content

Commit ee1e14e

Browse files
committed
chore: switch .gitignore to whitelist — private-by-default, opt-in public files
1 parent 085eb97 commit ee1e14e

1 file changed

Lines changed: 43 additions & 14 deletions

File tree

.gitignore

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,45 @@
1-
# Dependencies & build output
2-
node_modules/
3-
packages/*/node_modules/
4-
packages/*/dist/
5-
*.vsix
1+
# ============================================================
2+
# WHITELIST .gitignore
3+
# Ignore everything, then allow only public project files.
4+
# New files are private-by-default — you must opt-in below.
5+
# ============================================================
6+
7+
# 1. Ignore everything
8+
*
9+
10+
# 2. Allow top-level config & docs
11+
!.gitignore
12+
!.npmrc
13+
!package.json
14+
!pnpm-lock.yaml
15+
!pnpm-workspace.yaml
16+
!README.md
17+
!CHANGELOG.md
18+
!LICENSE
19+
20+
# 3. Allow GitHub config
21+
!.github/
22+
!.github/**
623

7-
# Local-only / AI / planning files
8-
.superpowers/
9-
.windsurf
10-
CLAUDE.md
24+
# 4. Allow scripts
25+
!scripts/
26+
!scripts/**
27+
28+
# 5. Allow packages directory structure
29+
!packages/
30+
!packages/extension/
31+
!packages/extension/**
32+
!packages/mcp-server/
33+
!packages/mcp-server/**
34+
!packages/shared/
35+
!packages/shared/**
36+
!packages/webview/
37+
!packages/webview/**
38+
39+
# 6. Re-ignore build artifacts, deps & private files inside allowed dirs
40+
**/node_modules/
41+
**/dist/
42+
*.vsix
1143
**/PLAN.md
12-
docs/
13-
draft/
14-
examples/
15-
artifacts/
16-
Research/
44+
packages/mcp-server/.chrome-profile/
45+
packages/mcp-server/dev-tools/

0 commit comments

Comments
 (0)