move WebAssembly example

This commit is contained in:
Bryce Miller 2022-08-31 14:20:25 -04:00
parent bc7d62e94c
commit 55688e8fa2
No known key found for this signature in database
GPG Key ID: F1E97BF8DF152350
3 changed files with 4 additions and 4 deletions

View File

@ -426,7 +426,7 @@ mod cli_run {
expected_ending:"Roc <3 Swift!\n",
use_valgrind: true,
},
platformSwitchingWebAssembly:"platform-switching/web-assembly-platform" => Example {
platformSwitchingWebAssembly:"platform-switching" => Example {
filename: "rocLovesWebAssembly.roc",
executable_filename: "rocLovesWebAssembly",
stdin: &[],

View File

@ -1,5 +1,5 @@
app "rocLovesWebAssembly"
packages { pf: "main.roc" }
packages { pf: "web-assembly-platform/main.roc" }
imports []
provides [main] to pf

View File

@ -3,8 +3,8 @@
To run this website, first compile either of these identical apps:
```bash
# Option A: Compile examples/platform-switching/web-assembly-platform/rocLovesWebAssembly.roc
cargo run -- build --target=wasm32 examples/platform-switching/web-assembly-platform/rocLovesWebAssembly.roc
# Option A: Compile examples/platform-switching/rocLovesWebAssembly.roc
cargo run -- build --target=wasm32 examples/platform-switching/rocLovesWebAssembly.roc
# Option B: Compile examples/platform-switching/main.roc with `pf: "web-assembly-platform/main.roc"` and move the result
cargo run -- build --target=wasm32 examples/platform-switching/main.roc