-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathmix.exs
More file actions
57 lines (51 loc) · 1.46 KB
/
mix.exs
File metadata and controls
57 lines (51 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
defmodule Casbin.MixProject do
use Mix.Project
def project do
[
app: :casbin,
version: "1.6.1",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/casbin/casbin-ex",
homepage_url: "https://casbin.org"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Casbin, []}
]
end
# specifies which paths to compile per environment
def elixirc_paths(:test), do: ["lib", "test/support"]
def elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto_sql, "~> 3.10"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:git_hooks, "~> 0.7.3", only: [:dev], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp description() do
"Casbin-Ex is a powerful and efficient open-source access control library for Elixir projects."
end
defp package() do
[
name: "casbin",
files: ~w(lib .formatter.exs mix.exs README.md LICENSE),
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/casbin/casbin-ex",
"Homepage" => "https://casbin.org",
"Docs" => "https://casbin.org/docs/overview"
}
]
end
end