-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (34 loc) · 869 Bytes
/
Makefile
File metadata and controls
47 lines (34 loc) · 869 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
46
47
CARGO ?= cargo
.DEFAULT_GOAL := serve
# ----------------------
# Formatting tasks
# ----------------------
cargo-format:
$(CARGO) fmt --all
leptos-format:
leptosfmt .
format: cargo-format leptos-format
fmt: format
fmt-all:
leptosfmt .
$(CARGO) fmt --all
$(CARGO) clippy --fix -- -D warnings
check:
leptosfmt --check .
$(CARGO) fmt --all --check
$(CARGO) clippy -- -D warnings
# ----------------------
# Utilidades
# ----------------------
get-sitemap:
rm -f assets/sitemap.xml
wget -S -P assets https://github.com/Phosphorus-M/sitemap-rustico/releases/download/latest/sitemap.xml
# ----------------------
# Build & Serve
# ----------------------
prebuild:
cp node_modules/@rustlanges/styles/dist/bundled.css bundled.css
build: prebuild
$(CARGO) leptos serve -r --split
serve: prebuild
$(CARGO) leptos watch --features development --hot-reload