ruvector/scripts/ci/install-hooks.sh
Reuven 7b7cfebf33 chore: reorganize scripts into subfolders
Create organized structure:
- benchmark/ - Performance benchmarking scripts
- ci/ - CI/CD automation scripts
- deploy/ - Deployment scripts and docs
- publish/ - Package publishing scripts
- test/ - Testing scripts
- validate/ - Validation & verification scripts

Update README with new structure and usage examples.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 23:48:37 -05:00

28 lines
732 B
Bash
Executable file

#!/bin/bash
# Install git hooks for automatic lock file syncing
set -e
echo "🔧 Installing git hooks..."
# Create .git/hooks directory if it doesn't exist
mkdir -p .git/hooks
# Install pre-commit hook
if [ -f ".githooks/pre-commit" ]; then
ln -sf ../../.githooks/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
chmod +x .githooks/pre-commit
echo "✅ Pre-commit hook installed"
else
echo "❌ Pre-commit hook file not found"
exit 1
fi
echo ""
echo "✨ Git hooks installed successfully!"
echo ""
echo "The following hooks are now active:"
echo " • pre-commit: Automatically syncs package-lock.json when package.json changes"
echo ""
echo "To disable, run: rm .git/hooks/pre-commit"