forked from RustLangES/RustLangES.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
70 lines (58 loc) · 1.47 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
[config]
default_to_workspace = true
skip_core_tasks = true
skip_git_env_info = true
skip_rust_env_info = true
skip_crate_env_info = true
[tasks.default]
alias = "serve"
[tasks.cargo-format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--all"]
[tasks.fmt-all]
script = '''
leptosfmt .
cargo fmt --all
cargo clippy --fix -- -D warnings
'''
[tasks.check]
script = '''
leptosfmt --check .
cargo fmt --all --check
cargo clippy -- -D warnings
'''
[tasks.leptos-format]
install_crate = "leptosfmt"
command = "leptosfmt"
args = ["."]
[tasks.format]
dependencies = ["cargo-format", "leptos-format"]
[tasks.fmt]
alias = "format"
[tasks.get-sitemap]
command = "sh"
args = [
"-c",
"rm -f assets/sitemap.xml && wget -S -P assets https://github.com/ph4un00b/sitemap-rustico/releases/download/latest/sitemap.xml",
]
[tasks.prebuild]
command = "npx"
args = ["tailwindcss", "-i", "./input.css", "-o", "./style/output.css"]
[tasks.build]
dependencies = ["get-sitemap", "prebuild"]
install_crate = { crate_name = "cargo-leptos", binary = "cargo", test_arg = [
"leptos",
"--version",
], version = "0.2.16" }
command = "cargo"
args = ["leptos", "serve", "-r"]
[tasks.build-style]
script.pre = "npx tailwind -i input.css -o style/output.css"
[tasks.serve]
install_crate = { crate_name = "cargo-leptos", binary = "cargo", test_arg = [
"leptos",
"--version",
], version = "0.2.16" }
command = "cargo"
args = ["leptos", "watch", "--features", "development", "--hot-reload"]