-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
33 lines (26 loc) · 839 Bytes
/
Copy pathjustfile
File metadata and controls
33 lines (26 loc) · 839 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
# Path to the prettier binary installed by the svelte package.
# Run `just install` first if it is missing.
prettier := "./svelte/node_modules/.bin/prettier"
# List available recipes.
default:
@just --list
# Install the frontend toolchain (pnpm deps, incl. prettier & tsc).
install:
cd svelte && pnpm install
# Format everything: Rust with cargo fmt, the rest with prettier.
fmt:
cargo fmt --all
{{prettier}} --write .
# Check formatting without modifying files (what CI runs).
fmt-check:
cargo fmt --all --check
{{prettier}} --check .
# Type-check the code: cargo check (all features) + tsc.
check:
cargo check --all-features --all-targets
cd svelte && pnpm run check
# Run all Rust tests (all features).
test:
cargo test --all-features
# Run the full CI suite locally.
ci: fmt-check check test