-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.toml
More file actions
45 lines (35 loc) · 885 Bytes
/
Makefile.toml
File metadata and controls
45 lines (35 loc) · 885 Bytes
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
[env] ## tells cargo make that we're in the context of a Cargo workspace
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[config] ## we want most/all of our tasks to run in the context of a workspace
default_to_workspace = false
[tasks.dev]
install_crate="cargo-watch"
cwd = "./crates/jd_app"
command = "cargo"
args = ["watch", "-x", "clippy", "-x", "run"]
[tasks.format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--", "--emit=files"]
[tasks.fix]
command = "cargo"
args = ["fix","--allow-dirty"]
[tasks.lint]
command = "cargo"
args = ["clippy"]
[tasks.lint-staged]
command = "npx"
args = ["lint-staged"]
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.build]
command = "cargo"
args = ["build" , "--release"]
[tasks.test]
command = "cargo"
args = ["test"]
[tasks.test-watch]
install_crate = "cargo-watch"
command = "cargo"
args = ["watch", "-x", "test"]