-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
57 lines (50 loc) · 1.17 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 Directions.MixProject do
use Mix.Project
@scm_url "https://github.com/Multiverse-io/directions"
@version "0.0.1"
def project do
[
app: :directions,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
source_url: @scm_url,
description: """
Helper to create and validate URLs based on an Phoenix web app's routes.
""",
docs: docs()
]
end
defp elixirc_paths(:test), do: ["lib", "test"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger],
mod: {Directions.Application, []}
]
end
defp deps do
[
{:ex_doc, "~> 0.27", only: :dev, runtime: false}
]
end
defp package do
[
links: %{"GitHub" => @scm_url},
licenses: ["MIT"],
maintainers: ["Cássio Marques"],
files: ~w(lib config mix.exs README.md LICENSE.md)
]
end
defp docs do
[
main: "Directions",
source_ref: "v#{@version}",
canonical: "https://hexdocs.pm/directions",
source_url: @scm_url
]
end
end