27 lines
711 B
Makefile
27 lines
711 B
Makefile
# Root justfile for Captain's Log - coordinates both backend and frontend
|
|
import 'backend/justfile'
|
|
import 'frontend/justfile'
|
|
|
|
# Combined commands - run both backend and frontend
|
|
dev:
|
|
#!/usr/bin/env bash
|
|
set -e
|
|
echo "Starting backend and frontend servers..."
|
|
(cd backend/ && just dev-backend) &
|
|
BACKEND_PID=$!
|
|
(cd frontend/ && just dev-frontend) &
|
|
FRONTEND_PID=$!
|
|
|
|
trap 'echo "Stopping servers..."; kill -TERM $BACKEND_PID $FRONTEND_PID 2>/dev/null || true; wait' EXIT
|
|
wait
|
|
|
|
build: build-backend build-frontend
|
|
|
|
test: test-unit-backend test-integration test-frontend
|
|
|
|
fmt: fmt-backend fmt-frontend
|
|
|
|
lint: lint-backend lint-frontend
|
|
|
|
clean: clean-backend clean-frontend
|
|
|