Files
Filamenteka/scripts/pre-commit.sh
DaX f0ea3e963a Add sale countdown timer expiring next Sunday
- Created SaleCountdown component with real-time countdown
- Displays days, hours, minutes, seconds until sale ends
- Responsive design with fire emoji and urgency messaging
- Auto-calculates next Sunday at 23:59:59
- Positioned prominently above filament table
2025-07-06 02:55:08 +02:00

35 lines
694 B
Bash
Executable File

#!/bin/bash
echo "🔍 Running pre-commit checks..."
# Check for forbidden author mentions
/Users/dax/Documents/GitHub/Filamenteka/.git/hooks/pre-commit-author-check
if [ $? -ne 0 ]; then
exit 1
fi
# Run security check
echo "🔐 Checking for credential leaks..."
npm run security:check
if [ $? -ne 0 ]; then
echo "❌ Security check failed!"
exit 1
fi
# Run build test
echo "🏗️ Testing build..."
node scripts/test-build.js
if [ $? -ne 0 ]; then
echo "❌ Build test failed!"
exit 1
fi
# Run tests
echo "🧪 Running tests..."
npm test -- --passWithNoTests
if [ $? -ne 0 ]; then
echo "❌ Tests failed!"
exit 1
fi
echo "✅ All pre-commit checks passed!"