Skip to content

Commit ced0cdb

Browse files
authored
Merge pull request #95 from vilpessoa/claude/project-structure-review-6NTxR
chore: configurar .claude/settings.json e hook de sessão
2 parents 0f15e8b + d08a733 commit ced0cdb

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

.claude/hooks/SessionStart.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Roda automaticamente ao iniciar cada sessão Claude Code
3+
4+
set -e
5+
6+
cd "$(git rev-parse --show-toplevel)"
7+
8+
echo "Instalando dependências..."
9+
npm install --prefer-offline 2>/dev/null || npm install
10+
11+
echo "Ambiente pronto."

.claude/settings.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(npm run dev:*)",
5+
"Bash(npm run build:*)",
6+
"Bash(npm run lint:*)",
7+
"Bash(npm install:*)",
8+
"Bash(git status:*)",
9+
"Bash(git diff:*)",
10+
"Bash(git log:*)",
11+
"Bash(git add:*)",
12+
"Bash(git commit:*)",
13+
"Bash(git push:*)",
14+
"Bash(find .:*)",
15+
"Bash(ls:*)"
16+
]
17+
},
18+
"hooks": {
19+
"SessionStart": [
20+
{
21+
"matcher": "",
22+
"hooks": [
23+
{
24+
"type": "command",
25+
"command": ".claude/hooks/SessionStart.sh"
26+
}
27+
]
28+
}
29+
]
30+
}
31+
}

0 commit comments

Comments
 (0)