View Source mix bonfire.extension.compile (Bonfire v0.9.10-classic-beta.169)

(re)compiles dependencies.

TODO: check if we still need this now that we treat extensions as umbrella apps in dev...

This is a modified version of Elixir's Mix.Tasks.Deps.Compile which was needed to compile dependencies and extract localisable strings in Mix.Tasks.Bonfire.Localise.Extract

By default, compile all dependencies. A list of dependencies can be given compile multiple dependencies in order.

This task attempts to detect if the project contains one of the following files and act accordingly:

If a list of dependencies is given, Mix will attempt to compile them as is. For example, if project a depends on b, calling mix deps.compile a will compile a even if b is out of date. This is to allow parts of the dependency tree to be recompiled without propagating those changes upstream. To ensure b is included in the compilation step, pass --include-children.

Summary

Functions

Receives a list of dependency names and returns loaded Mix.Deps. Logs a message if the dependency could not be found.

Callback implementation for Mix.Task.run/1.

Functions

Link to this function

force_compile(dep_or_deps, compile_args \\ [])

View Source
Link to this function

loaded_by_name(given, all_deps \\ nil, opts \\ [])

View Source

Receives a list of dependency names and returns loaded Mix.Deps. Logs a message if the dependency could not be found.

Exceptions

This function raises an exception if any of the dependencies provided in the project are in the wrong format.

@spec run(OptionParser.argv()) :: :ok

Callback implementation for Mix.Task.run/1.

Link to this function

try_compile(dep_or_deps, compile_args \\ [])

View Source