-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
47 lines (32 loc) · 814 Bytes
/
justfile
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
@_list:
just --list --unsorted
alias r := run
bt := '0'
log := "warn"
export JUST_LOG := log
watch:
cargo watch -c -- just verify
# main entry point to run in local
run:
trunk serve
test:
cargo test --target wasm32-unknown-unknown
# Perform all verifications (compile, test, lint etc.)
verify: test lint
# Run the static code analysis
lint:
cargo fmt --check
cargo clippy --target wasm32-unknown-unknown
clean:
rm -rf target
rm -f Cargo.lock
rm -rf node_modules
fmt:
cargo fmt
# run the release process in dry run mode (requires `npm`, a `GITHUB_TOKEN` and a `CARGO_REGISTRY_TOKEN`)
release *args:
npm install --no-save conventional-changelog-conventionalcommits @semantic-release/exec
npx semantic-release {{args}}
install-dev:
cargo install trunk
cargo install wasm-bindgen-cli