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",
|
||||||
"emulator/mgba-sys",
|
"emulator/mgba-sys",
|
||||||
"emulator/test-runner",
|
"emulator/test-runner",
|
||||||
"agb-wasm",
|
"website/backtrace",
|
||||||
]
|
]
|
||||||
|
|
||||||
exclude = [
|
exclude = [
|
||||||
|
|
8
justfile
8
justfile
|
@ -90,11 +90,11 @@ miri:
|
||||||
setup-cargo-wasm:
|
setup-cargo-wasm:
|
||||||
cargo install wasm-pack
|
cargo install wasm-pack
|
||||||
|
|
||||||
build-agb-wasm:
|
build-website-backtrace:
|
||||||
(cd agb-wasm && wasm-pack build --target web)
|
(cd website/backtrace && wasm-pack build --target web)
|
||||||
rm -rf website/agb/src/app/vendor/agb_wasm
|
rm -rf website/agb/src/app/vendor/agb_wasm
|
||||||
mkdir -p website/agb/src/app/vendor
|
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:
|
build-mgba-wasm:
|
||||||
rm -rf website/agb/src/app/mgba/vendor
|
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
|
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)
|
(cd website/agb && npm install --no-save --prefer-offline --no-audit)
|
||||||
|
|
||||||
build-site-app: setup-app-build
|
build-site-app: setup-app-build
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "agb-wasm"
|
name = "backtrace"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ default = ["console_error_panic_hook"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wasm-bindgen = "0.2.84"
|
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
|
# The `console_error_panic_hook` crate provides better debugging of panics by
|
||||||
# logging them with `console.error`. This is great for development, but requires
|
# logging them with `console.error`. This is great for development, but requires
|
Loading…
Reference in a new issue