defmodule Dagex.MixProject do use Mix.Project def project do [ name: "dagex", description: "Implement directed, acyclic graphs for Ecto models using PostrgreSQL's ltree extension.", source_url: "https://github.com/jwilger/dagex", homepage_url: "https://github.com/jwilger/dagex", package: [ licenses: ["Apache-2.0"], links: [] ], app: :dagex, version: "3.0.0", elixir: "~> 1.13", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps(), preferred_cli_env: [ "ecto.create": :test, "ecto.drop": :test, "ecto.dump": :test, "ecto.gen.migration": :test, "ecto.load": :test, "ecto.migrate": :test, "ecto.migrations": :test, "ecto.rollback": :test, "ecto.reset": :test, quality: :test ], dialyzer: [ plt_file: {:no_warn, "priv/plts/dialyzer.plt"}, ignore_warnings: ".dialyzer_ignore.exs" ], docs: [ main: "readme", extras: ["README.md", "LICENSE"], markdown_processor: {ExDoc.Markdown.Earmark, footnotes: true}, before_closing_head_tag: &before_closing_head_tag/1 ] ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp before_closing_head_tag(:html) do """ """ end defp before_closing_head_tag(_type), do: "" # Run "mix help deps" to learn about dependencies. defp deps do [ {:assertions, "~> 0.19", only: :test}, {:credo, "~> 1.1", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:ecto_sql, "~> 3.6"}, {:ecto_ltree, "~> 0.3.0"}, {:ex_doc, "~> 0.21", only: [:dev, :test], runtime: false}, {:jason, "~> 1.0"}, {:postgrex, ">= 0.0.0"}, {:typed_ecto_schema, "~> 0.3"} ] end defp aliases do [ "ecto.reset": ["ecto.drop --quiet", "ecto.create --quiet", "ecto.migrate --quiet"], test: ["ecto.reset", "test"], quality: [ "compile", "test --raise --slowest 1", "format", "credo --strict", "dialyzer" ] ] end end