-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
71 lines (56 loc) · 1.3 KB
/
Makefile.toml
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
[config]
default_to_workspace = false
skip_core_tasks = true
[env]
TARGET_DIR = "${PWD}/res"
[tasks.default]
alias = "build"
[tasks.clippy]
command = "cargo"
args = ["clippy", "--workspace", "--all-targets"]
[tasks.fmt]
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.build]
dependencies = ["build-and-rename", "convert-to-borsh"]
[tasks.build-and-rename]
dependencies = ["build-contract", "rename-contract"]
[tasks.build-contract]
command = "cargo"
args = [
"near",
"build",
"--out-dir",
"${TARGET_DIR}",
"--manifest-path",
"contract/Cargo.toml",
"--no-docker",
"--no-embed-abi",
"--no-abi",
]
[tasks.rename-contract]
script = "mv ${TARGET_DIR}/aurora_controller_factory.wasm ${TARGET_DIR}/aurora-controller-factory.wasm"
[tasks.convert-to-borsh]
command = "cargo"
args = [
"run",
"-p",
"aurora-borsh-converter",
]
[tasks.test]
alias = "tests"
[tasks.tests]
dependencies = ["build-and-rename"]
run_task = "run-tests"
[tasks.run-tests]
command = "cargo"
args = ["test", "--workspace", "--all-targets", "${@}"]
[tasks.clean]
dependencies = ["rm-contracts"]
command = "cargo"
args = ["clean"]
[tasks.rm-contracts]
script = "rm -rf ${TARGET_DIR}/*controller*.wasm"
[tasks.contract-stats]
category = "Tools"
script = "cd ${TARGET_DIR} && du -ah *.wasm"