-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (37 loc) · 817 Bytes
/
Copy pathMakefile
File metadata and controls
54 lines (37 loc) · 817 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
53
54
.PHONY: start-api start-web lint-api lint-web fmt-api fmt-web test-api test-web install-web
# API Commands
start-api:
cd api && go run cmd/app/main.go
dev-api:
cd api && nodemon --exec go run cmd/app/main.go --signal SIGTERM
lint-api:
cd api && golangci-lint run ./...
fmt-api:
cd api && go fmt ./...
test-api:
cd api && go test -v ./...
install-api:
cd api && go mod download
# Web Commands
install-web:
cd web && npm install
start-web:
cd web && npm run dev
build-web:
cd web && npm run build
lint-web:
cd web && npm run lint
format-web:
cd web && npm run format
test-web:
cd web && npm run test
# Combined Commands
install: install-web
cd ..
install-api
start:
make -j2 start-api start-web
lint: lint-api lint-web
fmt: fmt-api fmt-web
test: test-api test-web
.DEFAULT_GOAL := start