-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 820 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 820 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
.PHONY: build-go test-go install dev-web dev-mobile build-web tf-init tf-plan tf-apply clean
# Go backend
build-go:
cd services && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/bootstrap ./cmd/processor
cd services/bin && zip processor.zip bootstrap && rm bootstrap
cd services && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/bootstrap ./cmd/api
cd services/bin && zip api.zip bootstrap && rm bootstrap
test-go:
cd services && go test ./...
# Frontend monorepo
install:
pnpm install
dev-web:
pnpm --filter web dev
dev-mobile:
pnpm --filter mobile start
build-web:
pnpm --filter shared build && pnpm --filter web build
# Terraform
tf-init:
cd terraform && terraform init
tf-plan:
cd terraform && terraform plan
tf-apply:
cd terraform && terraform apply
clean:
rm -rf services/bin/