-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
98 lines (76 loc) · 1.96 KB
/
Justfile
File metadata and controls
98 lines (76 loc) · 1.96 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Default recipe to display help
default:
@just --list
# Format all code
format:
rumdl fmt .
taplo fmt
cargo +nightly fmt --all
# Auto-fix linting issues
fix:
rumdl check --fix .
# Run all lints
lint:
typos
rumdl check .
taplo fmt --check
cargo +nightly fmt --all -- --check
cargo +nightly clippy --all -- -D warnings
cargo machete
# Run tests
test:
cargo test --all-features
# Run tests with coverage
test-coverage:
cargo tarpaulin --all-features --workspace --timeout 300
# Build entire workspace
build:
cargo build --workspace
# Check all targets compile
check:
cargo check --all-targets --all-features
# Check for Chinese characters
check-cn:
rg --line-number --column "\p{Han}"
# Run Prism-based OpenAPI contract tests
test-prism:
./scripts/prism-test.sh
# Full CI check
ci: lint test build
# Publish crates to crates.io
publish:
cargo publish -p opencode-sdk-rs
# ============================================================
# Frontend (Leptos CSR) Commands
# ============================================================
# Start frontend development server with hot reload
fe-dev:
cargo leptos watch -p leptos-csr-app
# Build frontend in release mode
fe-build:
cargo leptos build -p leptos-csr-app --release
# Build frontend in debug mode
fe-build-dev:
cargo leptos build -p leptos-csr-app
# Serve the built frontend application
fe-serve:
cargo leptos serve -p leptos-csr-app
# Build WASM only
fe-build-wasm:
cargo build -p leptos-csr-app --target wasm32-unknown-unknown --release
# ============================================================
# Maintenance & Tools
# ============================================================
# Clean build artifacts
clean:
cargo clean
# Install all required development tools
setup:
cargo install cargo-leptos
cargo install cargo-machete
cargo install taplo-cli
cargo install typos-cli
cargo install leptosfmt
# Generate documentation for the workspace
docs:
cargo doc --no-deps --open