-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
79 lines (51 loc) · 1.39 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
BIN := ./node_modules/.bin
SHELL := /bin/bash
# CONTRACT BUILD
build: build/api/production
build/debug: build/api/debug
build/production: build/api/production
build/api:
make -C contracts/api build
build/api/debug:
make -C contracts/api build/debug
build/api/production:
make -C contracts/api build/production
build/delphihelper:
make -C contracts/delphihelper build
build/delphihelper/debug:
make -C contracts/delphihelper build/debug
build/delphihelper/production:
make -C contracts/delphihelper build/production
build/tokens:
make -C contracts/tokens build
build/tokens/debug:
make -C contracts/tokens build/debug
build/tokens/production:
make -C contracts/tokens build/production
# TESTNET
testnet:
make -C contracts/api testnet
testnet/tokens:
make -C contracts/tokens testnet
# MAINNET
mainnet/api:
make -C contracts/api mainnet
mainnet/delphihelper:
make -C contracts/delphihelper mainnet
mainnet:
make -C contracts/api mainnet
# UNIT TESTS
test/api: build/api/debug node_modules codegen
bun test
node_modules:
make -C contracts/api node_modules
.PHONY: jscheck
jscheck: node_modules
@${BIN}/eslint test --ext .ts --max-warnings 0 --format unix && echo "Ok"
test: build/debug codegen node_modules
bun test
# CODEGEN
.PHONY: codegen
codegen: codegen/api
codegen/api:
npx @wharfkit/cli generate --json ./contracts/api/build/api.abi --file ./codegen/api.ts unicove.gm