mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-23 12:55:26 +00:00
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>
28 lines
732 B
Bash
Executable file
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"
|