-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
43 lines (31 loc) · 1.63 KB
/
Copy pathjustfile
File metadata and controls
43 lines (31 loc) · 1.63 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
# Prism task runner. Requires `just` (https://github.com/casey/just) and
# `spacetime` CLI on PATH for the module/binding tasks.
default:
@just --list
# --- relay module ---
# Publish the relay module to a SpacetimeDB server.
publish-dev module="prism-relay" host="http://127.0.0.1:3000":
cd relay-module && spacetime version use 2.9.0 && spacetime publish --module-path . --server {{host}} {{module}}
# blocked - module gets published locally on prism server. can re-enable if this moves back to maincloud (lol)
#publish-prod module="prism-relay" host="https://st.prism.brico.app":
# cd relay-module && spacetime publish --module-path . --server {{host}} {{module}}
# Regenerate Rust client bindings into relay-bindings/src.
generate-bindings:
spacetime version use 2.9.0
spacetime generate -y --lang rust --out-dir relay-bindings/src --module-path relay-module
mv relay-bindings/src/mod.rs relay-bindings/src/lib.rs
# Regen bindings for bitcraftmap - we don't want reducers bloating things there though so only keep the types.
generate-map-bindings path="../bitcraftmap/src/relay-bindings":
spacetime version use 2.9.0
spacetime generate -y --lang ts --out-dir {{path}} --module-path relay-module
# Regen bindings for brico
generate-brico-bindings path="../brico/common/bindings/prism":
spacetime version use 2.9.0
spacetime generate -y --lang ts --out-dir {{path}} --module-path relay-module
# --- prism workspace ---
build:
cargo build --release --workspace
fmt:
cargo fmt -p prism -p prism-cartographer # don't format bindings
clippy:
cargo clippy --release --workspace --all-targets -- -D warnings