Switch over to WebAssembly, Rust and Yew #35

Merged
BlakeRain merged 87 commits from yew-static into main 2023-08-30 18:01:40 +00:00
Showing only changes of commit 36d8a4d60d - Show all commits

22
tools/build.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
set -eo pipefail
MODE="$1"
if [[ "$MODE" = "debug" ]]; then
MODE=""
fi
if [[ ! -z "$MODE" ]]; then
if [[ "$MODE" != "release" ]]; then
echo "Unknown build mode '$MODE'; expected either 'debug' or 'release'"
exit 1
fi
MODE="--$MODE"
fi
echo trunk build $MODE --features hydration
trunk build $MODE --features hydration
echo cargo run $MODE --features static --bin site-build
cargo run $MODE --features static --bin site-build