-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
24 lines (19 loc) · 853 Bytes
/
justfile
File metadata and controls
24 lines (19 loc) · 853 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
# Build WASM pkg. Assumed to be runned at ROOT.
wasm outdir="extension":
wasm-pack build crates/grs_wasm --target web --out-dir "../../{{outdir}}/pkg"
# Lint with clippy
clippy *args:
cargo clippy --all-targets --all-features {{args}} -- -W clippy::nursery -W clippy::pedantic -A clippy::must_use_candidate -A clippy::module_name_repetitions -A clippy::cast_precision_loss
RULE := "ALL"
alias t := test
# Quick test - The first one is for warmup
test path="texts/dump_lg.txt":
cargo run -rq check {{path}} --select {{RULE}} --statistics
grs check {{path}} --select {{RULE}} --statistics
cargo run -rq check {{path}} --select {{RULE}} --statistics
# Ripgrep relevant files for version
check-version:
rg version \
playground/package.json \
extension/manifest.json \
Cargo.toml crates/grs/Cargo.toml crates/grs_wasm/Cargo.toml