mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
move WebAssembly example
This commit is contained in:
parent
bc7d62e94c
commit
55688e8fa2
@ -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: &[],
|
||||
|
@ -1,5 +1,5 @@
|
||||
app "rocLovesWebAssembly"
|
||||
packages { pf: "main.roc" }
|
||||
packages { pf: "web-assembly-platform/main.roc" }
|
||||
imports []
|
||||
provides [main] to pf
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user