b185ec32e9
Co-authored-by: MarkAnthonyM <37249494+MarkAnthonyM@users.noreply.github.com>
12 lines
479 B
Makefile
12 lines
479 B
Makefile
serve package: (build package)
|
|
miniserve --index index.html ./target/{{package}}/
|
|
|
|
build package:
|
|
mkdir -p ./target/{{package}}/
|
|
cp ./examples/{{package}}/index.html ./target/{{package}}/
|
|
cargo build --release --package {{package}} --target wasm32-unknown-unknown --features web
|
|
wasm-bindgen --target web --no-typescript --out-dir ./target/{{package}}/ ./target/wasm32-unknown-unknown/release/{{package}}.wasm
|
|
|
|
clean package:
|
|
rm -rf ./target/{{package}}/
|