-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
73 lines (64 loc) · 1.79 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
defmodule Cadastre.MixProject do
use Mix.Project
@source_url "https://github.com/Recruitee/cadastre"
@version "0.2.17"
def project do
[
name: "Cadastre",
app: :cadastre,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
dialyzer: [plt_add_apps: [:mix]]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: extra_applications(Mix.env())
]
end
defp elixirc_paths(:dev), do: ["dev" | elixirc_paths(:prod)]
defp elixirc_paths(_), do: ["lib"]
defp extra_applications(:dev), do: [:inets | extra_applications(:prod)]
defp extra_applications(_), do: [:logger]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Updating data
{:gettext, ">= 0.0.0", only: :dev},
{:jason, "~> 1.0", only: :dev},
# Dev tools
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:credo, "~> 1.1", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
def docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
defp package do
[
description:
"A repository of languages, countries and country " <>
" subdivisions from the iso-codes Debian package.",
maintainers: ["Recruitee B.V."],
files: ["lib", "priv/data/*.etf", ".formatter.exs", "mix.exs", "README.md"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
end