mix fathom.build (fathom v0.1.0)

Copy Markdown View Source

Builds the program database for the current project.

mix fathom.build

The task compiles the project from scratch with Fathom.Tracer attached, reflects over the resulting modules, and writes everything to .fathom/program.db.

Options

  • --output, -o - where to write the database. Defaults to .fathom/program.db.
  • --no-compile - reuse the facts from an already-running build. Only useful when embedding this task in a larger pipeline.
  • --quiet - suppress the summary.

Why it recompiles everything

The tracer only sees what the compiler actually compiles. A warm build would produce a database covering whichever files happened to be stale, so the default is a full --force compile into a separate build directory (_build/$MIX_ENV-fathom) that leaves your normal build artefacts alone.