-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 1.09 KB
/
Copy pathMakefile
File metadata and controls
44 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.PHONY: install dev build test lint docker-up docker-down clean help
## install: Install dependencies for frontend and backend
install:
cd backend && npm ci
cd frontend && npm ci
## dev: Start backend and frontend in development mode
dev:
cd backend && npm run dev &
cd frontend && npm run dev
## build: Build backend and frontend for production
build:
cd backend && npm run build
cd frontend && npm run build
## test: Run all tests (contract, backend, frontend)
test:
npm run test:contract
cd backend && npm test
cd frontend && npm test
## lint: Run ESLint and Prettier checks on backend and frontend
lint:
cd backend && npm run lint
cd frontend && npm run lint
## docker-up: Start all services with Docker Compose
docker-up:
docker compose up --build -d
## docker-down: Stop and remove all Docker Compose services
docker-down:
docker compose down
## clean: Remove build artifacts and node_modules
clean:
rm -rf backend/dist backend/node_modules
rm -rf frontend/.next frontend/node_modules
## help: Print this help message
help:
@grep -E '^## ' Makefile | sed 's/## //' | column -t -s ':'