move agb-wasm to website directory

This commit is contained in:
Corwin 2024-04-19 21:12:46 +01:00
parent 9b773524d6
commit f5bbee01b7
No known key found for this signature in database
4 changed files with 7 additions and 7 deletions

View file

@ -26,7 +26,7 @@ members = [
"emulator/mgba",
"emulator/mgba-sys",
"emulator/test-runner",
"agb-wasm",
"website/backtrace",
]
exclude = [

View file

@ -90,11 +90,11 @@ miri:
setup-cargo-wasm:
cargo install wasm-pack
build-agb-wasm:
(cd agb-wasm && wasm-pack build --target web)
build-website-backtrace:
(cd website/backtrace && wasm-pack build --target web)
rm -rf website/agb/src/app/vendor/agb_wasm
mkdir -p website/agb/src/app/vendor
cp agb-wasm/pkg website/agb/src/app/vendor/agb_wasm -r
cp website/backtrace/pkg website/agb/src/app/vendor/agb_wasm -r
build-mgba-wasm:
rm -rf website/agb/src/app/mgba/vendor
@ -107,7 +107,7 @@ build-combo-rom-site:
gzip -9 -c examples/target/examples/combo.gba > website/agb/public/combo.gba.gz
setup-app-build: build-mgba-wasm build-combo-rom-site build-agb-wasm
setup-app-build: build-mgba-wasm build-combo-rom-site build-website-backtrace
(cd website/agb && npm install --no-save --prefer-offline --no-audit)
build-site-app: setup-app-build

View file

@ -1,5 +1,5 @@
[package]
name = "agb-wasm"
name = "backtrace"
version = "0.1.0"
edition = "2021"
@ -13,7 +13,7 @@ default = ["console_error_panic_hook"]
[dependencies]
wasm-bindgen = "0.2.84"
agb-debug = { path="../agb-debug" }
agb-debug = { path="../../agb-debug" }
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires