Packages

Simple framework for defining and running data migrations and backfills.

Current section

Files

Jump to
monarch mix.exs
Raw

mix.exs

defmodule Monarch.MixProject do
use Mix.Project
def project do
[
app: :monarch,
version: "0.3.2",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
elixirc_paths: ["lib/", "test/"],
deps: deps(),
docs: [main: "Monarch"],
source_url: "https://github.com/Vetspire-VSP/monarch",
homepage_url: "https://github.com/Vetspire-VSP/monarch",
package: [licenses: ["MIT"], links: %{"GitHub" => "https://github.com/Vetspire-VSP/monarch"}],
description: "Simple framework for defining and running data migrations and backfills.",
dialyzer: [plt_add_apps: [:mix, :ex_unit]]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Monarch.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto, "~> 3.6"},
{:oban, "~> 2.14"},
{:ecto_sql, "~> 3.6"},
# Dev/Test deps. These libraries are assumed to be provided by apps which
# rely on Monarch.
{:timex, "~> 3.7.6", only: [:test]},
{:postgrex, ">= 0.0.0", only: [:test]},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:styler, "~> 0.11", only: [:dev, :test], runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"ecto.migrate": ["ecto.migrate"],
test: ["ecto.create --quiet", "ecto.migrate", "test"],
lint: [
"format --check-formatted --dry-run",
"credo --strict",
"compile --warnings-as-errors",
"dialyzer"
]
]
end
end