-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathjustfile
More file actions
79 lines (56 loc) · 1.46 KB
/
justfile
File metadata and controls
79 lines (56 loc) · 1.46 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
set shell := ["bash", "-uc"]
default:
@just --list
# ── TypeScript ──
# Install TypeScript dependencies
ts-install:
cd typescript && pnpm install
# Build TypeScript packages
ts-build:
cd typescript && pnpm build
# Typecheck TypeScript
ts-typecheck:
cd typescript && pnpm typecheck
# Unit tests (TypeScript)
ts-test:
cd typescript && pnpm test
# Integration tests (TypeScript, requires Surfpool)
ts-test-integration:
cd typescript && pnpm test:integration
# Format and lint TypeScript
ts-fmt:
cd typescript && pnpm lint:fix && pnpm format
# Audit TypeScript dependencies
ts-audit:
cd typescript && pnpm audit --production
# ── Rust ──
# Build Rust crate
rs-build:
cd rust && cargo build
# Test Rust crate
rs-test:
cd rust && cargo test
# Format Rust
rs-fmt:
cd rust && cargo fmt
# Lint Rust
rs-lint:
cd rust && cargo clippy -- -D warnings
# ── Anchor ──
# Build Anchor program (programs/mpp-channel)
anchor-build:
anchor build --no-idl
# Run Anchor localnet tests (starts solana-test-validator automatically)
anchor-test:
anchor test
# ── Orchestration ──
# Build everything
build: ts-build rs-build anchor-build
# Run all unit tests
test: ts-test rs-test
# Run all tests including integration
test-all: ts-test ts-test-integration rs-test anchor-test
# Format everything
fmt: ts-fmt rs-fmt
# Pre-commit checks
pre-commit: ts-audit ts-fmt ts-typecheck ts-test rs-fmt rs-lint rs-test