Copies LocalLiveView runtime files into the host project and builds the WASM bundle.
Steps
- Copies Popcorn runtime files (
iframe.mjs,AtomVM.mjs,AtomVM.wasm) fromdeps/local_live_view/priv/static/intopriv/static/assets/js/. These must be served alongside Phoenix'sapp.jsso Popcorn'simport.meta.url-based lookups resolve. - Runs
mix buildinsidelocal/to compile the WASM bundle.
Usage
mix llv.buildAdd to your setup alias in mix.exs (done automatically by mix llv.install):
defp aliases do
[setup: ["deps.get", "llv.build", ...]]
end