ash_gen_server/mix.exs
2022-12-16 00:57:56 +00:00

84 lines
2.1 KiB
Elixir

defmodule AshGenServer.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :ash_gen_server,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
preferred_cli_env: [ci: :test],
aliases: aliases(),
deps: deps(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
consolidate_protocols: Mix.env() != :test,
dialyzer: [
plt_add_apps: [:mix, :ex_unit, :ash],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
docs: [
main: "readme",
extras: ["README.md"],
formatters: ["html"],
filter_modules: ~r/^Elixir.AshGenServer/,
source_url_pattern:
"https://github.com/team-alembic/ash_gen_server/blob/main/%{path}#L%{line}"
]
]
end
def package do
[
maintainers: [
"James Harton <james.harton@alembic.com.au>"
],
licenses: ["MIT"],
links: %{
"Source" => "https://github.com/team-alembic/ash_gen_server"
},
source_url: "https://github.com/team-alembic/ash_gen_server"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {AshGenServer.Application, []}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ash, "~> 2.2"},
{:credo, "~> 1.6", only: [:dev, :test]},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:doctor, "~> 0.18", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
{:git_ops, "~> 2.4", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
ci: [
"format --check-formatted",
"doctor --full --raise",
"credo --strict",
"dialyzer",
"hex.audit",
"test"
]
]
end
end