feat(hooks): add Husky git hooks for ui/goose2 (#8577)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Toohey
2026-04-21 18:08:27 +12:00
committed by GitHub
parent 70e12d9430
commit cbf893ced0
3 changed files with 103 additions and 5 deletions
+4 -3
View File
@@ -8,8 +8,9 @@ default:
# ── Dev Environment ──────────────────────────────────────────
# Install dependencies and build workspace packages
# Install dependencies, build workspace packages, and activate git hooks
setup:
git config core.hooksPath .husky
cd ../ && pnpm install
cd ../sdk && pnpm build
cargo build --manifest-path ../../Cargo.toml -p goose-cli --bin goose
@@ -33,7 +34,7 @@ fmt-check:
# Run clippy on Tauri backend
clippy:
cd src-tauri && cargo clippy -- -D warnings
cd src-tauri && TAURI_CONFIG='{"bundle":{"externalBin":[]}}' cargo clippy -- -D warnings
# Build the frontend
build:
@@ -45,7 +46,7 @@ tauri-fmt-check:
# Check Tauri Rust types
tauri-check:
cd src-tauri && cargo check
cd src-tauri && TAURI_CONFIG='{"bundle":{"externalBin":[]}}' cargo check
# Full CI gate
ci: check clippy test build tauri-check