View Source mix bonfire.dep.compile (bonfire v0.3.5-classic-beta.7)

Compiles dependencies.

This is a modified version of Elixir's Mix.Tasks.Deps.Compile which was needed to compile depedencies 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.

Link to this section 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.

Link to this section Functions

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

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.