localspot/scripts/pre-commit
Kevin Sivic 821af5b24f Update site branding and navigation for LocalSpot
- Replace Phoenix default navigation with LocalSpot nav
- Add links to Businesses, Categories, Map, and Add Business
- Update home page with hero, feature cards, and CTA
- Update page title suffix to LocalSpot
- Change pre-commit hook to auto-format instead of check

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 00:15:09 -05:00

25 lines
465 B
Bash
Executable file

#!/bin/sh
#
# Pre-commit hook for localspot
# Runs formatting and tests before allowing commits
#
# To install: cp scripts/pre-commit .git/hooks/pre-commit
set -e
echo "Running pre-commit checks..."
# Format code and stage any changes
echo "Formatting code..."
mix format
git add -u
# Run tests
echo "Running tests..."
mix test
if [ $? -ne 0 ]; then
echo "❌ Tests failed. Please fix before committing."
exit 1
fi
echo "✅ All pre-commit checks passed!"