forked from ilaborie/dioxus-web-component
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
53 lines (40 loc) · 1.08 KB
/
justfile
File metadata and controls
53 lines (40 loc) · 1.08 KB
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
# List all just receipes
default:
@just --list --unsorted
# Install requirement for recipes
requirement:
cargo binstall dioxus-cli bacon cargo-nextest cargo-sort wasm-pack basic-http-server
# Format the code and sort dependencies
format:
cargo fmt
dx fmt
cargo sort --workspace --grouped
_check_format:
cargo fmt --all -- --check
dx fmt --check
cargo sort --workspace --grouped --check
# Lint the rust code
lint:
cargo clippy --workspace --all-features --all-targets
# Launch tests
test:
cargo nextest run
cargo test --doc
# Check the code (formatting, lint, and tests)
check: && _check_format lint test
# Run TDD mode
tdd:
bacon
# Build documentation
doc:
cargo doc --all-features --no-deps
_example name:
cd examples/{{name}} && wasm-pack build --release --target web
basic-http-server examples/{{name}}
# Run Greeting example
example-greeting: (_example "greeting")
# Run Counter example
example-counter: (_example "counter")
# Run Dioxus (web component) in Dioxus example
example-dx-in-dx:
cd examples/dx-in-dx && dx serve