35 lines
757 B
Makefile
35 lines
757 B
Makefile
# List available recipes
|
|
default:
|
|
@just --list
|
|
|
|
# Build the Bevy app to WASM (release by default; use `just build dev` for debug)
|
|
build profile="release":
|
|
./build-wasm.sh {{profile}}
|
|
|
|
# Build WASM in debug mode
|
|
build-dev:
|
|
./build-wasm.sh dev
|
|
|
|
# Build the HTTP server (release)
|
|
build-server:
|
|
cargo build --release -p server
|
|
|
|
# Build WASM + server for production
|
|
build-all: build build-server
|
|
|
|
# Run the server (serves ./static on :3000)
|
|
serve:
|
|
cargo run -p server
|
|
|
|
# Build WASM then run the server
|
|
run: build-dev serve
|
|
|
|
# Type-check the workspace
|
|
check:
|
|
cargo clippy --target wasm32-unknown-unknown -p app
|
|
cargo clippy --target x86_64-unknown-linux-gnu -p server
|
|
|
|
# Remove build artifacts
|
|
clean:
|
|
rm -rf static
|
|
cargo clean
|