mix compile.patina (mix_patina v0.0.0)

Copy Markdown View Source

Compiles the Patina packages of a Mix project.

To use Patina compiler, add the following to your mix.exs:

def project do
  [
    # Add `:patina` before `Mix.compilers()`
    compilers: [:patina] ++ Mix.compilers(),

    # Add `:patina_core` to your dependencies.
    # We recommend depending on version `">= 0.0.0"`.
    deps: [{:patina_core, ">= 0.0.0"}],
  ]
end

The compiler builds the package for the root-level Patina.toml, if it exists, and all packages in directories listed under :patina_packages configuration key.

Command line options

  • --force - forces a clean rebuild.

Configuration

  • :patina_packages - directories of the in-tree Patina packages to compile, relative to mix.exs. Defaults to [].