-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
65 lines (59 loc) · 1.46 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
defmodule Idiom.MixProject do
use Mix.Project
def project do
[
app: :idiom,
description: "Modern internationalization library",
version: "0.7.0",
elixir: "~> 1.14",
compilers: [:leex, :yecc] ++ Mix.compilers(),
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test
],
test_coverage: [tool: ExCoveralls]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:decimal, "~> 2.1"},
{:jason, "~> 1.0"},
{:nimble_options, "~> 1.0"},
{:req, "~> 0.5"},
{:credo, "~> 1.7", only: [:dev, :test]},
{:ex_doc, "~> 0.34", only: :dev},
{:excoveralls, "~> 0.18", only: :test},
{:styler, "~> 1.1", only: [:dev, :test], runtime: false}
]
end
defp package do
[
name: "idiom",
licenses: ["MIT"],
maintainers: ["Christoph Schmatzler"],
links: %{"GitHub" => "https://github.com/cschmatzler/idiom"}
]
end
defp docs do
[
main: "Idiom",
extras: ["CHANGELOG.md"] ++ Path.wildcard("guides/**"),
groups_for_extras: [
Guides: Path.wildcard("guides/**")
]
]
end
end