Popcorn (Popcorn v0.3.0)

View Source

Popcorn is a tool for running Elixir in the browser.

Summary

Functions

Bundles compiled project code into an .avm file.

Builds a Popcorn .avm bundle.

Functions

bundle(options \\ [])

@spec bundle(out_dir: String.t(), start_module: module(), extra_beams: [String.t()]) ::
  :ok

Bundles compiled project code into an .avm file.

Options have the same semantics as in cook/1.

cook(options \\ [])

@spec cook(out_dir: String.t(), start_module: module(), extra_beams: [String.t()]) ::
  :ok

Builds a Popcorn .avm bundle.

Options:

  • out_dir - The directory to write artifacts to. Required, unless provided via config.exs.
  • start_module - Optional; a module with start/0 function that will be called after applications start.
  • extra_beams - Compiled BEAMs that should be included in the generated bundle.