Switch over to WebAssembly, Rust and Yew #35
22
tools/build.sh
Executable file
22
tools/build.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user