/
Makefile
41 lines (32 loc) · 907 Bytes
/
Makefile
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
test:
go test ./... -v --cover
test-report:
go test ./... -v --cover -coverprofile=coverage.out
go tool cover -func=coverage.out
go tool cover -html=coverage.out
todo:
# "|| true" is necesarry because grep returns 1 on empty results
@grep -rn TODO ui/src/ || true
@grep -rn TODO routes/ || true
@grep -rn TODO hooks/ || true
@grep -rn TODO models/ || true
@grep -rn TODO migrations/ || true
build-ui:
cd ui; npm install; npm run build
build: build-ui
go build
dev:
@echo "This command does not run the backend"
cd ui; npm run dev;
run:
@echo "This command does not build the frontend!"
go run main.go serve
build-windows: build-ui
@echo "Build is for Arch amd64."
GOOS=windows GOARCH=amd64 go build
build-darwin: build-ui
@echo "Build is for Arch amd64."
GOOS=darwin GOARCH=amd64 go build
build-linux: build-ui
@echo "Build is for Arch amd64."
GOOS=linux GOARCH=amd64 go build