You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates static artifacts to run the project in the browser.
18
+
Builds a Popcorn `.avm` bundle.
21
19
22
20
Options:
23
21
- `out_dir` - The directory to write artifacts to. Required, unless provided via `config.exs`.
24
22
- `start_module` - Optional; a module with `start/0` function that will be called after applications start.
25
-
- `target` - `wasm` (default) or `unix`. If `unix` is chosed, you need to build the runtime
26
-
first with `mix popcorn.build_runtime --target unix`
27
23
- `extra_beams` - Compiled BEAMs that should be included in the generated bundle.
28
-
- `include_vm` - If `true`, includes the VM and supporting files in the output directory (e.g. AtomVM.wasm, AtomVM.mjs and JS glue for wasm; AtomVM binary for unix).
29
-
30
-
Instead of calling `cook/1`, you can call `ingredients/1` and then `bundle/1`.
Copy file name to clipboardExpand all lines: popcorn/elixir/pages/getting_started/first_steps.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ import Config
74
74
config :popcorn, out_dir:"dist/wasm"
75
75
```
76
76
77
-
Next, fetch dependencies and compile your Elixir code to WebAssembly:
77
+
Next, fetch dependencies and compile your Elixir code into a Popcorn `.avm` bundle:
78
78
79
79
```console
80
80
$ mix deps.get
@@ -114,7 +114,7 @@ $ npm install --prefix assets
114
114
$ npm run build --prefix assets
115
115
```
116
116
117
-
The build step bundles your JavaScript, copies the WebAssembly runtime assets, and outputs everything to the `dist/` directory.
117
+
The JavaScript build step bundles your JavaScript, copies the WebAssembly runtime assets, and outputs everything to the `dist/` directory. `mix popcorn.cook` only produces the `.avm` bundle.
0 commit comments