Packages

AWS IAM-style policy evaluation for Ash Framework

Current section

Files

Jump to
ash_iam mix.exs
Raw

mix.exs

defmodule AshIam.MixProject do
use Mix.Project
def project do
[
app: :ash_iam,
version: "2.0.0",
description: "AWS IAM-style policy evaluation for Ash Framework",
package: [
maintainers: ["wearecococo"],
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/wearecococo/ash-iam"
}
],
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
deps: deps(),
aliases: aliases(),
test_coverage: [
tool: ExCoveralls
],
docs: [
# The main page in the docs
main: "AshIam",
logo: "logo.png",
extras: extras()
],
source_url: "https://github.com/wearecococo/ash_iam",
homepage_url: "https://github.com/wearecococo/ash_iam"
]
end
defp extras do
"documentation/**/*.md"
|> Path.wildcard()
|> Enum.concat(["README.md"])
|> Enum.map(fn path ->
title =
path
|> Path.basename(".md")
|> String.split(~r/[-_]/)
|> Enum.map_join(" ", &String.capitalize/1)
{String.to_atom(path),
[
title: title,
default: title == "Get Started"
]}
end)
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {AshIam.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ash, "~> 3.0 and >= 3.0.15"},
{:cachex, "~> 4.0"},
{:ash_postgres, "~> 2.0", only: :test},
{:simple_sat, ">= 0.0.0", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
# benchmarking
{:benchee, "~> 1.0", only: [:dev, :test]},
# test watcher
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:sourceror, "~> 1.7", only: [:dev, :test]},
# test coverage
{:excoveralls, "~> 0.18", only: :test}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
defp aliases do
[
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end