rust-webwasm/justfile

15 lines
303 B
Makefile
Raw Permalink Normal View History

2023-11-19 01:50:37 -08:00
_default:
just --list
2024-01-02 01:08:02 -08:00
# Install wasm-pack dev tool
install-wasm-pack:
2023-11-19 01:50:37 -08:00
cargo install wasm-pack
2024-01-02 01:08:02 -08:00
# Use wasm-pack to build a checkerboard binary
build-checkerboard:
2023-11-19 01:50:37 -08:00
~/.cargo/bin/wasm-pack build --target web
2024-01-02 01:08:02 -08:00
# Serve the checkerboard pattern
serve-checkerboard:
2023-11-19 01:50:37 -08:00
python -m http.server 9001