mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-26 15:06:06 +00:00
chore: bootstrap Claude setup
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ac7241b1b9
commit
53985889c3
7 files changed
+174
No files matched your search
@@ -0,0 +1 @@
|
||||
2
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"hooks": {
|
||||
"PostToolUse": [
|
||||
{
|
||||
"matcher": "Edit|Write",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "file=$(cat | python3 -c 'import json,sys; print(json.load(sys.stdin).get(\"tool_input\",{}).get(\"file_path\",\"\"))'); case \"$file\" in *.py) python3 -m py_compile \"$file\" ;; *.ts|*.vue|*.js) if [ -d \"$(dirname \"$file\")/../node_modules\" ] || [ -d frontend/node_modules ]; then (cd frontend && npx --no-install eslint --fix \"${file#frontend/}\" 2>&1 || true); fi ;; esac"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "set -e; python3 -m compileall backend -q; if [ -d frontend/node_modules ]; then (cd frontend && npm run build); else echo 'frontend/node_modules missing, skipping frontend build check'; fi"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user