mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-07 05:28:45 -04:00
added web UI
This commit is contained in:
parent
48f0c6eed8
commit
f1b8c08e8f
15 changed files with 1114 additions and 78 deletions
15
web/build.sh
15
web/build.sh
|
|
@ -1,15 +1,2 @@
|
|||
|
||||
|
||||
CRATE_NAME="automata-web"
|
||||
TARGET_NAME="automata-web"
|
||||
OUT_FILE_NAME="./root/automata.wasm"
|
||||
mkdir root
|
||||
TARGET="../target"
|
||||
|
||||
|
||||
cargo build --package automata-web --target wasm32-unknown-unknown --release
|
||||
TARGET_NAME="${CRATE_NAME}.wasm"
|
||||
WASM_PATH="${TARGET}/wasm32-unknown-unknown/release/$TARGET_NAME"
|
||||
|
||||
wasm-bindgen ${WASM_PATH} --out-dir root --out-name ${OUT_FILE_NAME} --no-modules --no-typescript
|
||||
wasm-opt ${OUT_FILE_NAME} -O2 --fast-math -g -o ${OUT_FILE_NAME}
|
||||
wasm-pack build --release --target web --no-typescript --out-dir root/automata --no-pack
|
||||
Loading…
Add table
Add a link
Reference in a new issue