-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
56 lines (40 loc) · 1.03 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
SCRIPT_DIR := "./scripts"
BUILD_OUT_DIR := "bin/"
PWD = $(shell pwd)
.PHONY: setup
setup:
$(SCRIPT_DIR)/setup.sh
.PHONY: dev-setup
dev-setup: setup config/dev.toml
config/dev.toml:
touch $(PWD)/config/dev.toml
.PHONY: build
build:
$(SCRIPT_DIR)/compile.sh
.PHONY: build-frontend
build-frontend: web/frontend/js/frontend.js
web/frontend/js/frontend.js:
echo "Compiling frontend"
gopherjs build ./internal/frontend --output "./web/frontend/js/frontend.js" --minify --verbose
# .PHONY: dev-build
# dev-build:
# $(SCRIPT_DIR)/dev.sh
.PHONY: dev-docker-up
dev-docker-up:
$(SCRIPT_DIR)/docker.sh up
.PHONY: dev-docker-down
dev-docker-down:
$(SCRIPT_DIR)/docker.sh down
.PHONY: dev-docker-run-example ## Runs bundled example in dev docker env
dev-docker-run-example:
$(SCRIPT_DIR)/run-example.sh
.PHONY: dev-migration
dev-migration:
go build ./cmd/migration/main.go -o migration.go
./migration.go up
.PHONY: test-integration
test-integration:
go test -tags=integration ./test/it -v -count=1
.PHONY: test-unit
test-unit:
go test