generated from veeso-dev/rust-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
98 lines (82 loc) · 2.62 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.dfx-build]
description = "Build canisters"
dependencies = []
script = "./scripts/dfx-build.sh"
workspace = false
[tasks.run]
description = "Run app"
dependencies = []
command = "cargo"
args = ["run"]
workspace = false
[tasks.test]
description = "Run unit tests"
command = "cargo"
args = ["test", "--lib"]
dependencies = ["did"]
workspace = false
[tasks.integration-tests]
description = "Run integration tests"
script = "./scripts/integration-tests.sh"
dependencies = ["did", "dfx-build"]
workspace = false
[tasks.deploy-local]
description = "Deploy testnet with dfx"
script = "./scripts/deploy_local.sh"
dependencies = ["dfx-setup", "dfx-build", "did"]
workspace = false
[tasks.lint]
description = "Run lint"
command = "cargo"
args = ["clippy", "--", "-Dwarnings"]
workspace = false
[tasks.format]
description = "Run the cargo rustfmt plugin."
command = "cargo"
args = ["fmt", "--all"]
[tasks.check-format]
description = "Run the cargo rustfmt plugin."
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.did]
description = "Generate did files"
dependencies = [
"deferred-did",
"ekoke-erc20-swap-did",
"ekoke-liquidity-pool-did",
"ekoke-reward-pool-did",
"marketplace-did",
"dfx-generate",
]
workspace = false
[tasks.deferred-did]
description = "Generate did files for deferred"
script = "cargo run --bin deferred-did --features did > src/deferred/deferred.did"
workspace = false
[tasks.ekoke-erc20-swap-did]
description = "Generate did files for ekoke-erc20-swap"
script = "mkdir -p .dfx/local/canisters/ekoke-erc20-swap-frontend/ && cp candid/assetsstorage.did .dfx/local/canisters/ekoke-erc20-swap-frontend/assetstorage.did && cargo run --bin ekoke-erc20-swap-did --features did > src/ekoke_erc20_swap/ekoke-erc20-swap.did"
workspace = false
[tasks.ekoke-liquidity-pool-did]
description = "Generate did files for ekoke-liquidity-pool"
script = "cargo run --bin ekoke-liquidity-pool-did --features did > src/ekoke_liquidity_pool/ekoke-liquidity-pool.did"
workspace = false
[tasks.ekoke-reward-pool-did]
description = "Generate did files for ekoke-reward-pool"
script = "cargo run --bin ekoke-reward-pool-did --features did > src/ekoke_reward_pool/ekoke-reward-pool.did"
workspace = false
[tasks.marketplace-did]
description = "Generate did files for marketplace"
script = "cargo run --bin marketplace-did --features did > src/marketplace/marketplace.did"
workspace = false
[tasks.dfx-generate]
description = "Generate dfx did"
command = "dfx"
args = ["generate"]
workspace = false
[tasks.dfx-setup]
description = "setup dfx"
script = "./scripts/dfx-setup.sh"
workspace = false