-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitignore
More file actions
346 lines (312 loc) · 11.1 KB
/
Copy path.gitignore
File metadata and controls
346 lines (312 loc) · 11.1 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
# ============================================================================
# AUTO-GENERATED — DO NOT EDIT
# ============================================================================
# This file is rendered by:
# /Users/deepanshu/personal1/whuppi/.claude/scripts/stamp-gitignore.sh
# from:
# /Users/deepanshu/personal1/whuppi/.gitignore.template
#
# To change patterns:
# - Workspace-wide: edit .gitignore.template, then re-run the stamper.
# - One repo only: edit `additions_for` in the stamper, then re-run.
# Manual edits to this file will be overwritten on the next stamp.
# ============================================================================
# ==============================================================================
# whuppi canonical .gitignore template (workspace-wide patterns)
# ==============================================================================
# Source of truth: /Users/deepanshu/personal1/whuppi/.gitignore.template
# Rendered into every repo's .gitignore by:
# /Users/deepanshu/personal1/whuppi/.claude/scripts/stamp-gitignore.sh
# Per-repo additions (compiled artifacts, vendored binaries, etc.) live in
# the stamper's `additions_for` data table, NOT in this template and NOT
# in the rendered .gitignore files.
# Rules: /Users/deepanshu/personal1/whuppi/.claude/rules/gitignore-template.md
# ==============================================================================
# ── Secrets and credentials ───────────────────────────────────────────────────
# Pattern shape:
# - Ignore every `.env*` file by default.
# - Re-include the well-known template / example / sample variants
# (including hybrid `.json` forms used by Flutter env configs —
# see flutter-shared/build-and-environments.md).
.env
.env.local
.env.production
.env.development
.env.test
.env.*.local
**/.env
**/.env.*
!**/.env.example
!**/.env.example.*
!**/.env.*.example
!**/.env.template
!**/.env.template.*
!**/.env.*.template
!**/.env.sample
!**/.env.sample.*
!**/.env.*.sample
# Auth, tokens, keys
*.token
*.pem
*.key
!**/public.pem
!**/public.key
# NOTE: NEVER use `**/auth/` `**/credentials/` `**/secrets/` here —
# Dart packages legitimately have `lib/src/auth/` source folders.
# Auth/credentials/secrets DATA lives only under `data/` (see runtime
# section below) — that's the only place we ignore those names.
# Secrets files (any flavor, any location)
# NOTE: .deploy/ directories are NOT blanket-ignored because git can't
# un-ignore files inside an ignored directory. Instead we ignore the
# secret FILES by name. upload-secrets.sh is a tool, not a secret — it
# reads from secrets.json but contains no secrets itself.
secrets.json
secrets*.json
secrets_*.json
**/secrets.json
**/secrets-*.json
# Cookie files (login session captures)
cookies.json
cookies*.json
cookies_*.json
cookies.txt
# ── Runtime data (databases, caches, user content) ────────────────────────────
# Blanket-ignore data/ contents but allow specific safe templates and
# a samples/ directory back through.
#
# Note on git negation: `!data/foo` only works if `data/` itself isn't
# also a directory pattern. We list specific subpaths instead of `data/`
# so negation can re-include single files reliably.
data/*
!data/.gitkeep
!data/.env.example
!data/.env.template
!data/.env.sample
!data/README.md
!data/samples
data/samples/output/
data/samples/cache/
# Common sensitive subdirs explicitly (defense in depth — covers any
# nested data/ paths in subprojects)
**/data/auth/
**/data/credentials/
**/data/secrets/
**/data/cache/
**/data/db/
**/data/cookies.json
**/data/cookies*.json
**/data/cookies_*.json
**/data/.env
**/data/.env.local
**/data/.env.production
# Output dirs (top-level only — anchored to repo root by leading `/`
# so they do NOT trip source folders like `lib/src/output/` or
# `lib/generated/` inside Dart packages).
/output/
/outputs/
/generated/
/debug/
/logs/
/projects/
/test-results/
*.log
# Output dirs that ARE legitimately runtime data wherever they appear
# (these names are never used for source code anywhere in whuppi).
**/data/output/
**/data/outputs/
**/data/generated/
**/data/projects/
# Caches — repo-root only (the dot-prefixed ones are universal).
/cache/
.cache/
**/.cache/
**/data/cache/
# Databases
*.db
*.sqlite
*.sqlite3
*.sqlite3-wal
*.sqlite3-shm
*.db-journal
# ── Python ────────────────────────────────────────────────────────────────────
# Patterns that are ONLY ever Python artifacts (no source-folder collisions
# anywhere in whuppi) stay unanchored. Patterns whose names could collide with
# source folders elsewhere are anchored to repo root with a leading `/`.
__pycache__/
*.py[cod]
*$py.class
.Python
.eggs/
*.egg-info/
.installed.cfg
*.egg
# Build-output dir names — anchored to repo root so they only catch the
# Python build at the tool's top level. Subpackage source folders named
# the same are unaffected.
/develop-eggs/
/dist/
/downloads/
/eggs/
/lib64/
/parts/
/sdist/
/var/
/wheels/
# Virtual environments
.venv/
/venv/
# `/ENV/` and `/env/` are deliberately NOT in this template:
# - macOS is case-insensitive — `/ENV/` matches `env/` and would
# break Flutter's build-time config dir (env/.env.json — see
# flutter-shared/build-and-environments.md).
# - Python tools that need their `env/` or `ENV/` venv ignored add
# it via the stamper's `additions_for` per-repo block. Most use
# `.venv/` instead and don't need anything here.
# Testing
.tox/
.coverage
.coverage.*
.pytest_cache/
.hypothesis/
.mypy_cache/
.ruff_cache/
/htmlcov/
# ── Node / JS / TS ────────────────────────────────────────────────────────────
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.npm
.yarn-integrity
.pnp.*
.next/
.nuxt/
.svelte-kit/
.turbo/
# ── Dart / Flutter ────────────────────────────────────────────────────────────
.dart_tool/
.fvm/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
build/
flutter_*.png
linked_*.ds
unlinked.ds
unlinked_spec.ds
*.lock
!pubspec.lock
!uv.lock
# analyze-floor's lock snapshot — only exists if a run was interrupted
# (the make target restores + deletes it on every exit path it owns).
pubspec.lock.floorbak
# Safety net: Dart/Flutter packages have their source in `lib/` and `bin/`.
# Re-include them explicitly so no upstream pattern can ever sweep them up
# (a defense-in-depth in case a future addition has unintended breadth).
!lib/
!lib/**
!bin/
!bin/**
# Re-re-assert: build / cache / tool dirs INSIDE lib/ are still artifacts,
# not source. The safety net above re-includes lib/** wholesale, so these
# patterns must be re-stated specifically to NOT re-include them.
**/lib/.dart_tool/
**/bin/.dart_tool/
**/lib/build/
**/bin/build/
# Flutter platform-specific build artifacts (keep platform configs in tree)
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/flutter_export_environment.sh
**/macos/Flutter/GeneratedPluginRegistrant.swift
**/macos/Flutter/ephemeral/
# Swift Package Manager (Flutter iOS/macOS uses SPM by default since 3.44).
# Regenerated at build time — the native SPM package versions already follow
# the Dart deps pinned in pubspec.lock, so Package.resolved is redundant and
# churns across Xcode versions; .build is pure output. A shipped app that wants
# reproducible SPM resolution can un-ignore Package.resolved per-repo.
**/xcshareddata/swiftpm/Package.resolved
**/.build/
**/android/.gradle/
**/android/local.properties
**/android/captures/
**/android/key.properties
# ── Native / C / C++ ──────────────────────────────────────────────────────────
*.o
*.a
*.dylib
*.dll
*.exe
*.out
target/
cmake-build-*/
# ── IDE ───────────────────────────────────────────────────────────────────────
.idea/
.vscode/
*.iml
*.swp
*.swo
*~
.zed/
.cursor/
# ── OS ────────────────────────────────────────────────────────────────────────
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Desktop.ini
# ── Claude Code auto-files ────────────────────────────────────────────────────
# Claude Code auto-creates CLAUDE.md as a copy of ~/CLAUDE.md when starting a
# session in a directory without one. We don't author CLAUDE.md anymore — the
# canonical AI config lives in workspace .claude/rules/ and .claude/memory/.
# See whuppi/_playground/RESUMPTION-BRIEF.md for the elimination history.
CLAUDE.md
**/CLAUDE.md
# ── Test runner caches ────────────────────────────────────────────────────────
# Dart test runner kernel + VM caches occasionally leak when test runs
# are killed mid-execution (anywhere — workspace root or repo root).
dart_test.kernel.*
dart_test.vm.*
# ── pip temp leaks ────────────────────────────────────────────────────────────
# Each `pip install` creates pip-build-tracker-*, pip-ephem-wheel-cache-*,
# pip-install-*, pip-metadata-* and similar dirs in $TMPDIR. If a Python
# tool's Makefile pins TMPDIR inside its venv (the recommended pattern),
# they don't leak. These patterns are belt-and-suspenders for the case
# where pip ran from the wrong CWD before TMPDIR was set.
pip-build-tracker-*
pip-ephem-wheel-cache-*
pip-install-*
pip-metadata-*
pip-modern-metadata-*
pip-pip-self-*
pip-record-*
pip-req-build-*
pip-target-*
pip-tmp-*
pip-unpack-*
pip-wheel-*
# ── Misc ──────────────────────────────────────────────────────────────────────
*.bak
*.tmp
*.temp
*.orig
.sass-cache/
# Compiled icu_capi shared libraries (build hook output).
*.dylib
*.so
*.dll
# WebAssembly artifacts (built by tool/build_wasm.dart, not source —
# bundled ~19 MB, lean ~2 MB).
web_assets/icu4x.wasm
web_assets/icu4x-lean.wasm
# Lean-WASM chrome-test mirror (prepared by `make test-web-lean`).
test_fixtures/lean_smoke/web_mirror/
# Example app's copy of the web assets (installed via
# `dart run icu_kit:setup --force web` for the web integration target).
example/web/icu_kit/
# Cargo target dir for vendor/icu4x submodule builds.
target/