API Reference hologram v0.4.0

View Source

Modules

Raised when an asset can't be found.

Raised when a page or a component can't be compiled.

JavaScript interop.

Raised when a page param is invalid.

Raised when template markup is invalid.

Mix Tasks

Builds Hologram project JavaScript bundles, the call graph of the code, PLTs needed by the runtime and PLTs needed to speed up future compilation.

Prints the list of automatically transpiled Elixir MFAs used by the Hologram client runtime (manually ported Elixir MFAs are excluded).

Calculates the JavaScript size of each Elixir function that is included in the specified page module bundle. The results are sorted by size.

Prints paths from page entry MFAs to the given destination MFA.

Prints paths from runtime entry MFAs to the given destination MFA.

Prints the list of page routes, ordered by route path.

Checks if any test scripts have invalid file names. File name is valid if it ends with "_test" suffix and has ".exs" extension. If there are any invalid file names, the task exits with code 1. Support dir and text_helper.exs file are ignored.