ash_authentication_phoenix/mix.exs

95 lines
2.6 KiB
Elixir
Raw Normal View History

2022-10-25 10:39:57 +13:00
defmodule AshAuthenticationPhoenix.MixProject do
use Mix.Project
2022-10-25 11:23:05 +13:00
@version "0.1.0"
2022-10-25 10:39:57 +13:00
def project do
[
app: :ash_authentication_phoenix,
2022-10-25 11:23:05 +13:00
version: @version,
2022-10-25 10:39:57 +13:00
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
2022-10-25 11:23:05 +13:00
preferred_cli_env: [ci: :test],
aliases: aliases(),
deps: deps(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_add_apps: [:mix, :ex_unit],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
]
end
def package do
[
maintainers: [
"James Harton <james.harton@alembic.com.au>"
],
licenses: ["MIT"],
links: %{
"Source" => "https://github.com/team-alembic/ash_authentication_phoenix"
},
source_url: "https://github.com/team-alembic/ash_authentication_phoenix"
2022-10-25 10:39:57 +13:00
]
end
# Run "mix help compile.app" to learn about applications.
2022-10-25 11:23:05 +13:00
def application, do: application(Mix.env())
def application(:dev) do
2022-10-25 10:39:57 +13:00
[
extra_applications: [:logger],
2022-10-25 11:23:05 +13:00
mod: {Dev.Application, []}
2022-10-25 10:39:57 +13:00
]
end
2022-10-25 11:23:05 +13:00
def application(_),
do: [
extra_applications: [:logger]
]
2022-10-25 10:39:57 +13:00
# Run "mix help deps" to learn about dependencies.
defp deps do
[
2022-10-25 11:23:05 +13:00
{:ash_authentication,
github: "team-alembic/ash_authentication", optional: true, branch: "feat/identity"},
{:ash_phoenix, "~> 1.1"},
{:ash, "~> 2.2"},
{:jason, "~> 1.0"},
{:phoenix_html, "~> 3.2"},
{:phoenix_live_view, "~> 0.18"},
{:phoenix, "~> 1.6"},
{:bcrypt_elixir, "~> 3.0", only: [:dev, :test]},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:doctor, "~> 0.18", only: [:dev, :test]},
{:elixir_sense, github: "elixir-lsp/elixir_sense", only: [:dev, :test]},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:faker, "~> 0.17.0", only: [:dev, :test]},
{:git_ops, "~> 2.4", only: [:dev, :test], runtime: false},
{:mimic, "~> 1.7", only: [:dev, :test]},
{:plug_cowboy, "~> 2.5", only: [:dev, :test]}
]
end
defp aliases do
[
ci: [
"format --check-formatted",
"doctor --full --raise",
"credo --strict",
"dialyzer",
"hex.audit",
"test"
],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
2022-10-25 10:39:57 +13:00
]
end
2022-10-25 11:23:05 +13:00
defp elixirc_paths(:test), do: ["lib", "test/support", "dev"]
defp elixirc_paths(:dev), do: ["lib", "test/support", "dev"]
defp elixirc_paths(_), do: ["lib"]
2022-10-25 10:39:57 +13:00
end