-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
57 lines (50 loc) · 1.23 KB
/
mix.exs
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 Tenancy.MixProject do
use Mix.Project
@version "0.4.0"
def project do
[
app: :ecto_tenancy_enforcer,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
deps: deps(),
name: "Ecto Tenancy Enforcer",
description: "Provides a way to ensure that all queries made from your Elixir application, using Ecto, have tenancy set",
package: package(),
docs: docs()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ecto, "~> 3.2"},
{:ecto_sql, "~> 3.2"},
{:postgrex, ">= 0.0.0", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp aliases do
[
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
defp package do
[
maintainers: ["Stephen Bussey"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/sb8244/ecto_tenancy_enforcer"},
files: ~w(.formatter.exs mix.exs README.md CHANGELOG.md lib)
]
end
defp docs() do
[
source_ref: "v#{@version}",
main: "readme",
extras: [
"README.md"
]
]
end
end