mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
move agb-wasm to website directory
This commit is contained in:
parent
9b773524d6
commit
f5bbee01b7
|
@ -26,7 +26,7 @@ members = [
|
|||
"emulator/mgba",
|
||||
"emulator/mgba-sys",
|
||||
"emulator/test-runner",
|
||||
"agb-wasm",
|
||||
"website/backtrace",
|
||||
]
|
||||
|
||||
exclude = [
|
||||
|
|
8
justfile
8
justfile
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue