-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
55 lines (48 loc) · 1.51 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
defmodule Location.MixProject do
use Mix.Project
def project do
[
app: :location,
version: "0.1.0",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
end
defp description do
"""
Elixir library for accessing ISO3166-1 (country) and ISO3166-2 (subdivision) data as well as geoname data for cities. Source data comes from the upstream [debian iso-codes](https://salsa.debian.org/iso-codes-team/iso-codes) package.
"""
end
defp package do
[
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Uku Taht"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/plausible/location"}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger | extra_applications(Mix.env())]
]
end
defp extra_applications(env) when env in [:dev, :test], do: [:inets, :ssl, :xmerl]
defp extra_applications(_env), do: []
# Specifies which paths to compile per environment.
defp elixirc_paths(env) when env in [:dev, :test], do: ["lib", "mix_tasks"]
defp elixirc_paths(_env), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.3"},
{:nimble_csv, "~> 1.1"},
{:floki, "~> 0.36.0", only: [:dev, :test]},
{:flow, "~> 1.0", only: [:dev, :test]}
]
end
end