-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 574 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 574 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
.PHONY: dev dev-backend dev-frontend build setup web
setup:
cd web && pnpm install
# Development
dev:
@trap 'kill $$(jobs -p)' EXIT; \
make dev-backend & \
make dev-frontend & \
wait
dev-backend:
go run . --serve --web
dev-frontend:
cd web && pnpm run dev
# Building
build:
cd web && pnpm run build
find app/dist -mindepth 1 -not -name '.gitignore' -delete
cp -r web/build/client/* app/dist/
go build -o reminder .
# Build web app
web:
cd web && pnpm run build
find app/dist -mindepth 1 -not -name '.gitignore' -delete
cp -r web/build/client/* app/dist/