View Source ExMonorepo (exmonorepo v0.2.1)

Enable searching a directory for nested set of dependencies.

These are free form and coverted to a local path instead of using hex, git or similar to fetch it. The monorepo may optionally export all dependencies to archives using the command mix monorepo.export.

Example

defmodule TestProject.MixProject do

use Mix.Project
use ExMonorepo

end

Detecting monorepo

A monorepo should have the file repo.exs to define it's configuration (if any). the content is a set of variables like root, dist which will be set in the project options.

Using archives

If dist option is used all the non-monorepo dependencies are exported to a .ez file tagged with app, version and checksum. When starting a mix command all the archives are added to path and may be used without recompiling.

If the archive is deleted the dependency will revert to normal dependency handling.

Summary

Functions

Extract values from a repofile

Get all possible repofiles from path to filesystem root (/)

Functions

Link to this function

map_config_item(e, cwd \\ File.cwd!())

View Source

Expand common options

Takes some variables supporting relative path and expands them according to the directory (typically the dirname of monorepo.exs)

Extract values from a repofile

Get all possible repofiles from path to filesystem root (/)