Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ca866f

Browse files
committed
chore: harden gitignore and add commit hygiene rules
1 parent fc7387f commit 9ca866f

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
11
node_modules/
22
dist/
33
*.tgz
4+
5+
# OS
46
.DS_Store
7+
Thumbs.db
8+
9+
# Editor / IDE
10+
.vscode/
11+
.idea/
12+
*.swp
13+
*.swo
14+
*~
15+
16+
# Planning artifacts (internal, not shipped)
17+
docs/superpowers/
18+
19+
# Config / secrets
20+
.env
21+
.env.*
22+
*.pem
23+
*.key
24+
25+
# Debug / logs
26+
*.log
27+
npm-debug.log*
28+
29+
# Cache
30+
.cache/
31+
*.sqlite
32+
33+
# Build artifacts
34+
*.tsbuildinfo

CLAUDE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ git push origin main
5757
gh pr comment <number> --body "Merged, thanks!"
5858
```
5959

60+
### What gets committed
61+
- Source code: `src/`, `tests/`
62+
- Config: `package.json`, `tsconfig.json`, `tsup.config.ts`, `.gitignore`
63+
- Docs: `README.md`, `CHANGELOG.md`, `LICENSE`, `CLAUDE.md`
64+
- Assets: `assets/`
65+
- NEVER commit: `.env`, secrets, keys, planning docs (`docs/superpowers/`), IDE config, logs, `.DS_Store`
66+
- Check `git status` before every commit. Stage specific files, never `git add -A` or `git add .`
67+
6068
### Commit rules
6169
- Commits from: AgentSeal <[email protected]>
6270
- NEVER add Co-Authored-By lines

0 commit comments

Comments
 (0)