50e25e3ee8
Rename subdirectories for a cleaner single-repo layout: - website-monitoring-backend/ → backend/ - website-monitoring-frontend/ → frontend/ - website-monitoring-devops/ → devops/ Update all references in package.json scripts, CI workflows, docker-compose, pre-commit hooks, and documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
18 lines
411 B
Bash
Executable File
18 lines
411 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check if backend files changed
|
|
if git diff --cached --name-only | grep -q "^backend/"; then
|
|
echo "🔍 Linting backend..."
|
|
cd backend && npx eslint src/ || exit 1
|
|
cd ..
|
|
fi
|
|
|
|
# Check if frontend files changed
|
|
if git diff --cached --name-only | grep -q "^frontend/"; then
|
|
echo "🔍 Linting frontend..."
|
|
cd frontend && npx next lint || exit 1
|
|
cd ..
|
|
fi
|
|
|
|
echo "✅ Pre-commit checks passed"
|