-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 592 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (22 loc) · 592 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
ifneq (,$(wildcard ./.env))
include .env
export
endif
.PHONY: all test clean client
api.debug:
go run cmd/api/main.go
api.test:
go test ./... -timeout 60s
api.build:
CGO_ENABLED=1 go build -ldflags='-s -w' -o koito ./cmd/api/main.go
client.dev:
cd client && yarn run dev
docs.dev:
cd docs && yarn dev
client.deps:
cd client && yarn install
client.build: client.deps
cd client && yarn run build
find client/build/client -type f \( -name "*.js" -o -name "*.css" -o -name "*.html" -o -name "*.svg" \) -exec gzip -k -9 {} \;
test: api.test
build: api.build client.build