- 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>
25 lines
465 B
Bash
Executable file
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!"
|