mix bonfire.extension.compile (Bonfire v1.0.0-social-rc.3.22)
View Source(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:
mix.exs- invokesmix compile- otherwise skip
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
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.