Current section
Files
Jump to
Current section
Files
mix.exs
defmodule AshRbac.MixProject do
use Mix.Project
def project do
[
app: :ash_rbac,
version: "0.3.2",
description: "A small extension for easier application of policies",
package: [
maintainers: ["travel tech d.luxe GmbH"],
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/traveltechdeluxe/ash-rbac",
"Travel Tech D.Luxe": "https://www.traveltechdeluxe.com/"
}
],
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [
# The main page in the docs
main: "AshRbac",
logo: "logo.png",
extras: extras()
],
source_url: "https://github.com/traveltechdeluxe/ash-rbac",
homepage_url: "https://github.com/traveltechdeluxe/ash-rbac"
]
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]
]
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, "~> 2.11.8"},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:elixir_uuid, "~> 1.2", only: [:test], runtime: false},
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
{:git_hooks, "~> 0.7.3", only: :dev},
# benchmarking
{:benchee, "~> 1.0", only: [:dev, :test]},
# test watcher
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end