-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (51 loc) · 1.07 KB
/
Makefile
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
ifndef VERBOSE
MAKEFLAGS += --silent
endif
.PHONY: check
check:
cargo check --workspace --all-targets --all-features
.PHONY: clean
clean:
cargo clean
.PHONY: doc
doc:
cargo doc --open --workspace
.PHONY: fix
fix:
cargo fix --allow-dirty --allow-staged
.PHONY: fmt
fmt:
cargo +nightly fmt --all
.PHONY: lint
lint:
cargo clippy --workspace --all-targets --all-features \
-- --no-deps -D warnings
.PHONY: release
release:
if [ "$(version)" = "" ]; then \
echo "release version is required."; \
exit 1; \
fi \
&& git tag $(version) \
&& git push origin $(version)
.PHONY: serve
serve: wasm
yarn
yarn run serve -p 8080 wasm/dist/
.PHONY: spell-check
spell-check:
docker pull ghcr.io/streetsidesoftware/cspell:latest > /dev/null \
&& docker run --rm \
-v $(shell pwd):/workdir \
ghcr.io/streetsidesoftware/cspell:latest \
--config .vscode/cspell.json "**"
.PHONY: test
test:
cargo test --workspace --all-targets
.PHONY: udeps
udeps:
cargo machete
cargo +nightly udeps --all-targets
.PHONY: wasm
wasm:
cd wasm && wasm-pack build --out-dir dist --target web