moa/emulator/frontends/pixels/justfile
2022-10-02 21:20:44 -07:00

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}}/