mirror of
https://github.com/transistorfet/moa.git
synced 2024-11-15 09:05:15 +00:00
12 lines
422 B
Makefile
12 lines
422 B
Makefile
|
serve package: (build package)
|
||
|
miniserve --index index.html ./dist/{{package}}/
|
||
|
|
||
|
build package:
|
||
|
mkdir -p ./dist/{{package}}/
|
||
|
cp ./assets/{{package}}/* ./dist/{{package}}/
|
||
|
cargo build --release --target wasm32-unknown-unknown
|
||
|
wasm-bindgen --target web --no-typescript --out-dir ./dist/{{package}}/ ./target/wasm32-unknown-unknown/release/{{package}}.wasm
|
||
|
|
||
|
clean package:
|
||
|
rm -rf ./dist/{{package}}/
|