1
0

feat: initial commit

This commit is contained in:
gin
2026-05-07 18:39:00 +08:00
commit cdee21ee8e
653 changed files with 63946 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
if [ -n "$CI" ]; then
exit 0
fi
staged_files="$(git diff --cached --name-only --diff-filter=ACMR)"
if printf '%s\n' "$staged_files" | grep -q '^frontend/'; then
if ! command -v pnpm >/dev/null 2>&1; then
echo "pre-commit hook error: pnpm is required for frontend checks"
exit 1
fi
pnpm --dir frontend lint
fi