Skip to content

Commit

Permalink
add rerun-build-web to pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Mar 25, 2024
1 parent b9c8b68 commit b8ac371
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ rerun-release = "cargo run --package rerun-cli --no-default-features --features
#
# This installs the `wasm32-unknown-unknown` rust target if it's not already installed.
# (this looks heavy but takes typically below 0.1s!)
rerun-web = """
rustup target add wasm32-unknown-unknown
&& cargo run -p re_build_web_viewer -- --debug
&& cargo run --package rerun-cli --no-default-features --features web_viewer -- --web-viewer
"""
rerun-web = { cmd = "cargo run --package rerun-cli --no-default-features --features web_viewer -- --web-viewer", depends_on = [
"rerun-build-web",
] }

# Compile the web-viewer
#
# This installs the `wasm32-unknown-unknown` rust target if it's not already installed.
# (this looks heavy but takes typically below 0.1s!)
rerun-build-web = "rustup target add wasm32-unknown-unknown && cargo run -p re_build_web_viewer -- --debug"

# Compile and run the web-viewer in release mode via rerun-cli.
#
Expand Down

0 comments on commit b8ac371

Please sign in to comment.