Mix.Tasks.Compile.Elixir

Compiles Elixir source files.

Elixir is smart enough to recompile only files that changed and their dependencies. This means if lib/a.ex is invoking a function defined over lib/b.ex, whenever lib/b.ex changes, lib/a.ex is also recompiled.

Note it is important to recompile a file dependencies because often there are compilation time dependencies in between them.

Command line options

Configuration

Source

Summary

files_to_path(manifest, stale, all, path, on_start)

Compiles stale Elixir files

manifests()

Returns Elixir manifests

run(args)

Runs this task

Functions

files_to_path(manifest, stale, all, path, on_start)

Compiles stale Elixir files.

It expects a manifest file, all stale files, all source files available (including the ones that are not stale) and a path where compiled files will be written to. All paths are required to be relative to the current working directory.

The manifest is written down with information including dependencies in between modules, which helps it recompile only the modules that have changed at runtime.

Source
manifests()

Returns Elixir manifests.

Source
run(args)

Runs this task.

Source