-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
79 lines (51 loc) · 1.66 KB
/
Copy pathjustfile
File metadata and controls
79 lines (51 loc) · 1.66 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
# MuniCoins — unified build tasks (install: cargo install just)
# Run `just` or `just --list` from the repo root.
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
default:
@just --list
# --- Rust / WASM viewer (egui + Trunk) ---
wasm-target:
rustup target add wasm32-unknown-unknown
viewer-wasm: wasm-target
cd viewer-egui && trunk build
viewer-wasm-release: wasm-target
cd viewer-egui && trunk build --release
viewer-serve:
cd viewer-egui && trunk serve
viewer-check:
cd viewer-egui && cargo check --lib --target wasm32-unknown-unknown
viewer-native:
cd viewer-egui && cargo run --features native --bin muni-viewer-egui
# --- Leptos UI (Rust → WASM CSR; Deno serves `ui/dist` — minimal TS in Deno is static server only) ---
ui-check: wasm-target
cd ui && cargo check --target wasm32-unknown-unknown
ui-wasm: wasm-target
cd ui && trunk build
ui-wasm-release: wasm-target
cd ui && trunk build --release
ui-serve:
deno task ui:serve
# --- Rust sidecar (EIP-712 signing) ---
sidecar:
cargo build -p issuance-eip712-sidecar
sidecar-release:
cargo build -p issuance-eip712-sidecar --release
sidecar-check:
cargo check -p issuance-eip712-sidecar
# --- Deno (indexer, issuance authority, intersect — until ported to Rust) ---
deno-check:
deno task check
deno-fmt:
deno fmt
# --- Solidity ---
contracts:
forge build
contracts-test:
forge test
# --- Aggregate ---
check: sidecar-check viewer-check ui-check deno-check
@echo "check: ok"
build-release: sidecar-release viewer-wasm-release ui-wasm-release contracts
@echo "build-release: ok"
all: check build-release
@echo "all: ok"