-
Notifications
You must be signed in to change notification settings - Fork 12
/
Justfile
44 lines (32 loc) · 866 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
set positional-arguments
default:
just --list
dev:
docker compose up
undev:
docker compose down
clippy:
cargo clippy --fix --workspace --allow-dirty
cargo fmt
dotenv:
cp .env.example .env
prepare:
cargo run database migrate
cargo run database entities
serve:
cargo run serve
# Runs E2E Tests and optionally runs a specific test requires `e2e_test_dev` to be executed first.
e2e_tests *args='':
cargo test --package test -- --test-threads=1 $1
# Runs formatting tool against Leptos source
web-fmt:
leptosfmt ./crates/web/src/**/*.rs
# Runs Web UI for Development
web-dev:
cd ./crates/web && trunk serve --config ./Trunk.toml
# Builds Web UI for Production
web-build:
cd ./crates/web && trunk build --release --locked --config ./Trunk.toml
# Runs Web Crate Tests
web-test:
cd ./crates/web && wasm-pack test --headless --firefox