-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjustfile
75 lines (57 loc) · 1.21 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
_default:
just --list -u
alias f := format
alias t := test
alias l := lint
alias bench := benchmarks
# Setup development environment
setup:
# Install Rust-related tools
cargo install taplo-cli --locked
# Setup Node.js environment
corepack enable
corepack prepare --activate
yarn
# Build project
build:
yarn build
# Format all files
format: format-toml format-rust format-js
# Format TOML files
format-toml:
taplo format
# Format Rust files
format-rust:
cargo fmt --all
# Formst JavaScript/TypeScript files
format-js:
yarn biome format --write
# Test all files
test: test-rust test-js
# Test Rust files
test-rust:
cargo test --no-fail-fast
# Test JavaScript/TypeScript files
test-js:
yarn build
yarn vitest run
# Lint all files
lint: lint-rust lint-js
# Lint Rust files
lint-rust:
cargo clippy
# Lint JavaScript/TypeScript files
lint-js:
yarn biome check
# Check type is correct for TypeScript files
typecheck:
yarn tsc --noEmit
# Start docs development server
docs:
yarn workspace docs run dev
# Run documentation generator
docs-gen *ARGS:
yarn workspace docs run gen {{ARGS}}
# Run benchmarks
benchmarks:
yarn workspace benchmarks run bench