-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
96 lines (79 loc) · 1.82 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
[tasks.format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--", "--emit=files"]
[tasks.check-format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.clippy]
install_crate = "clippy"
command = "cargo"
args = ["clippy", "--fix"]
[tasks.check-clippy]
install_crate = "clippy"
command = "cargo"
args = ["clippy", "--all-targets", "--all-features", "--"]
[tasks.post-build]
command = "npm"
args = ["run", "post-build"]
[tasks.watch-post-build]
command = "npm"
args = ["run", "post-build"]
watch = true
[tasks.app-build-dev]
command = "trunk"
args = ["build"]
workspace = false
[tasks.watch-serve-dev]
command = "trunk"
args = ["serve", "--address", "0.0.0.0"]
workspace = false
[tasks.app-build-release]
command = "trunk"
args = ["build", "--release", "--public-url", "scientists-toolbox"]
workspace = false
[tasks.tailwind-dev]
command = "npx"
args = ["tailwindcss", "-c", "./tailwind.config.js", "-o", "./index.css"]
[tasks.watch-tailwind-dev]
command = "npx"
args = ["tailwindcss", "-c", "./tailwind.config.js", "-o", "./index.css", "--watch"]
[tasks.tailwind-release]
command = "npx"
args = ["tailwindcss", "-c", "./tailwind.config.js", "-o", "./index.css", "--minify"]
[tasks.test-dev]
command = "cargo"
args = ["test"]
[tasks.watch-test-dev]
dependencies = [
"test-dev"
]
watch = true
[tasks.test-release]
command = "cargo"
args = ["test", "--release"]
[tasks.watch]
run_task = { name = [
"watch-serve-dev",
"watch-tailwind-dev",
"watch-post-build"
], parallel = true }
[tasks.dev]
dependencies = [
"format",
"clippy",
"tailwind-dev",
"app-build-dev",
"post-build",
"test-dev"
]
[tasks.release]
dependencies = [
"check-format",
"check-clippy",
"tailwind-release",
"app-build-release",
"post-build",
"test-release",
]