-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (34 loc) · 958 Bytes
/
Makefile
File metadata and controls
52 lines (34 loc) · 958 Bytes
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
45
46
47
48
49
50
51
52
# eaccess monorepo
# ---- docker ----
up:
docker compose up -d
@echo "waiting for postgres..."
@until docker compose exec postgres pg_isready -U test_user -d easy_auth_test > /dev/null 2>&1; do sleep 1; done
@echo "postgres ready on port 5433"
down:
docker compose down
down-volumes:
docker compose down -v
logs:
docker compose logs -f postgres
# ---- admin dev (two terminals) ----
server: up
cd packages/admin && npx tsx watch dev-server.ts
client:
cd packages/admin && npx vite
# ---- auth ----
test: up
cd packages/auth && npx vitest run
test-watch: up
cd packages/auth && npx vitest
# ---- build ----
build-auth:
cd packages/auth && npm run build
build-admin:
cd packages/admin && npm run build
build: build-auth build-admin
# ---- install ----
install:
cd packages/auth && npm install
cd packages/admin && npm install
.PHONY: up down down-volumes logs server client test test-watch build-auth build-admin build install