-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
77 lines (69 loc) · 1.85 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
defmodule BridgeEx.MixProject do
use Mix.Project
@source_url "https://github.com/primait/bridge_ex"
@version "2.4.0-rc.0"
def project do
[
app: :bridge_ex,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
aliases: aliases(),
package: package(),
dialyzer: [plt_add_apps: [:prima_auth0_ex]]
]
end
defp aliases do
[
"format.all":
"format mix.exs 'lib/**/*.{ex,exs}' 'test/**/*.{ex,exs}' 'config/*.{ex,exs}' 'priv/**/*.exs'"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {BridgeEx.Application, []},
extra_applications: [:logger]
]
end
defp elixirc_paths(env) when env in [:dev, :test], do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:absinthe, "~> 1.6"},
{:bypass, "~> 2.1", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
{:jason, "~> 1.2"},
{:noether, "~> 1.0"},
{:prima_auth0_ex, "~> 0.6", optional: true},
{:telepoison, "~> 1.0"}
]
end
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
def package do
[
description: "BridgeEx is a library to build bridges to other services.",
name: "bridge_ex",
maintainers: ["Prima"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
end