Files
2026-05-24 22:55:17 +07:00

42 lines
1.4 KiB
Makefile

.PHONY: lint lint-be lint-fe fmt fmt-be fmt-fe check typecheck build
# ── Backend ──────────────────────────────────────────────────────────────────
lint-be:
cd backend && cargo clippy -- -D warnings
fmt-be:
cd backend && cargo fmt
fmt-be-check:
cd backend && cargo fmt -- --check
check-be:
cd backend && cargo check
# ── Frontend ─────────────────────────────────────────────────────────────────
lint-fe:
cd frontend && npm run lint
typecheck-fe:
cd frontend && npx tsc --noEmit
# ── Combined ─────────────────────────────────────────────────────────────────
lint: lint-be lint-fe
fmt: fmt-be
check: fmt-be-check lint-be check-be typecheck-fe lint-fe
# ── Build ────────────────────────────────────────────────────────────────────
build:
docker compose build
up:
docker compose up -d
down:
docker compose down
logs:
docker compose logs -f