-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (38 loc) · 1018 Bytes
/
justfile
File metadata and controls
47 lines (38 loc) · 1018 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
manifest := "--manifest-path typst-extra-docs/Cargo.toml"
# List available recipes
list:
@just --list
# Format files
[group("dev")]
fmt:
ruff format
cargo fmt {{ manifest }}
# Check files
[group("dev")]
check:
ruff check
cargo clippy {{ manifest }}
# Run tests
[group("dev")]
test:
cargo test {{ manifest }}
# Run ripgrep
[group("dev")]
[no-cd]
rg PATTERN *ARGS:
rg --no-ignore-vcs --glob=!meta.json {{ quote(PATTERN) }} {{ ARGS }}
# Download book sources from GitHub (Please rerun if you meet any network error.)
download:
uv run scripts/download.py
# Build the book
build: download
mdbook build
# Now check the book/ directory.
# Serve and open the book
serve *ARGS: download
mdbook serve {{ ARGS }}
# Check latest versions of packages
[group("maintenance")]
check-versions: download
@{{ if env("GITHUB_TOKEN", "") == "" { error("$GITHUB_TOKEN is required to access GitHub GraphQL API, but it is not set.") } else { "" } }}
node scripts/check_versions.ts