-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.account
74 lines (56 loc) · 1.19 KB
/
Makefile.account
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
######
###### Build targets
######
.PHONY: build
build: build-account-service
.PHONY: build-account-service
build-account-service:
@(npm run build)
clean: clean-account-service
@cat /dev/null
.PHONY: clean-account-service
clean-account-service:
@rm -rf dist
######
###### Testing targets
######
.PHONY: setup
setup:
@cd apps/api/test/setup && npm install && npm run main
.PHONY: test-e2e
test-e2e:
@(npm run test:e2e)
######
###### Running apps targets
######
.PHONY: start-account-service
start-account-service:
@(nest start api --watch)
######
###### Misc targets
######
.PHONY: lint
lint:
@(npm run lint )
.PHONY: dev-graphs
dev-graphs:
madge --dot --extensions ts apps/worker/src > docs/worker-graph.gv
madge --dot --extensions ts apps/api/src > docs/api-graph.gv
######
###### Devlopment targets
######
.PHONY: mock-webhook
mock-webhook:
@cd webhook-servers && cargo run
.PHONY: dev-webhook
dev-webhook:
@cd webhook-servers && cargo watch -x run
.PHONY: restart-chain-docker
restart-chain-docker:
@./scripts/restart-chain-docker.sh
.PHONY: restart-local-dev
restart-local-dev:
@./scripts/restart-local-dev.sh
.PHONY: docker-clean-up
docker-clean-up:
@./scripts/docker-clean-up.sh