-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path.gitignore
More file actions
84 lines (72 loc) · 2.18 KB
/
Copy path.gitignore
File metadata and controls
84 lines (72 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# ═══════════════════════════════════════════════════════
# Whitelist-based .gitignore — private by default
# New files are HIDDEN unless explicitly whitelisted.
# Only production-relevant files are public.
# ═══════════════════════════════════════════════════════
#
# DO NOT `git add -f` files under docs/superpowers/ unless you have a clear,
# considered reason to publish them. Planning artifacts under that path are
# private AI-development content. The pre-push hook in
# scripts/git-hooks/pre-push will refuse pushes that contain them — set
# PERP_ALLOW_PRIVATE_PLAN_PUSH=1 to override for a single push if you really
# mean it. Activate the hook once per clone with:
# git config core.hooksPath scripts/git-hooks
# (or run `npm install` — postinstall does it for you).
# 1. Ignore everything
*
# 2. Allow top-level production config
!.gitignore
!.npmrc
!package.json
!package-lock.json
!tsconfig.json
!tsconfig.base.json
!vitest.config.ts
!README.md
!CHANGELOG.md
!LICENSE
!LICENSE.txt
!NOTICE
!SECURITY.md
# 3. Allow GitHub config
!.github/
!.github/**
# 4. Allow build scripts
!scripts/
!scripts/**
# 5. Allow root media assets
!mcp-tool-icons/
!mcp-tool-icons/**
# 5b. Allow specific docs assets (e.g. README preview images)
!docs/
!docs/preview_compressed.webp
# 6. Allow packages (production source)
!packages/
!packages/shared/
!packages/shared/**
!packages/mcp-server/
!packages/mcp-server/src/
!packages/mcp-server/src/**
!packages/mcp-server/scripts/
!packages/mcp-server/scripts/**
!packages/mcp-server/test/
!packages/mcp-server/test/**
!packages/mcp-server/package.json
!packages/mcp-server/tsconfig.json
!packages/mcp-server/tsup.config.ts
!packages/mcp-server/README.md
!packages/webview/
!packages/webview/**
!packages/extension/
!packages/extension/**
# 6. Re-ignore private/generated files inside allowed dirs
**/node_modules/
**/dist/
*.vsix
*.tsbuildinfo
*.har
*.debug.json
**/PLAN.md
.env*
packages/extension/media/webview/
packages/extension/dist/node_modules/