Current section

Files

Jump to
frontier mix.exs
Raw

mix.exs

defmodule Frontier.MixProject do
  use Mix.Project

  def project do
    [
      app: :frontier,
      version: "0.2.2",
      elixir: "~> 1.19",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      elixirc_paths: elixirc_paths(Mix.env()),
      name: "Frontier",
      description: "Smart boundary enforcement for Elixir projects",
      docs: [
        main: "readme",
        extras: ["README.md", "LICENSE", "CHANGELOG.md"]
      ],
      package: [
        licenses: ["Unlicense"],
        links: %{"GitHub" => "https://github.com/frm/frontier"}
      ]
    ]
  end

  def application do
    [
      extra_applications: [:logger],
      mod: {Frontier.Application, []}
    ]
  end

  defp deps do
    [
      {:ex_doc, "~> 0.35", only: :dev, runtime: false},
      {:credo, "~> 1.7", only: [:dev, :test], runtime: false},
      {:eunomo, "~> 2.0", only: [:dev, :test], runtime: false}
    ]
  end

  defp elixirc_paths(:test), do: ["lib", "test/support"]
  defp elixirc_paths(_), do: ["lib"]
end