-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
62 lines (58 loc) · 1.61 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
58
59
60
61
62
defmodule Needle.MixProject do
use Mix.Project
def project do
if System.get_env("AS_UMBRELLA") == "1" do
[
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock"
]
else
[]
end ++
[
app: :needle,
version: "0.8.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: "Universal foreign keys, virtual schemas, and shared data mixins",
homepage_url: "https://github.com/bonfire-networks/needle",
source_url: "https://github.com/bonfire-networks/needle",
package: [
licenses: ["Apache 2"],
links: %{
"Repository" => "https://github.com/bonfire-networks/needle",
"Hexdocs" => "https://hexdocs.pm/needle"
}
],
docs: [
# The first page to display from the docs
main: "readme",
# extra pages to include
extras: ["README.md"]
],
deps: deps()
]
end
def application do
[
extra_applications: [:logger, :crypto]
]
end
defp elixirc_paths(:test), do: ["test/support" | elixirc_paths(:dev)]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ecto_sql, "~> 3.8"},
{:exto, "~> 0.4"},
{:needle_uid,
#"~> 0.0.1",
git: "https://github.com/bonfire-networks/needle_uid"
},
{:telemetry, "~> 0.4 or ~> 1.0", optional: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
end