-
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.6.8",
elixir: "~> 1.13",
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.4"},
{:credo, "~> 1.7", only: [:dev, :test]},
{:ex_doc, "~> 0.30", only: :dev},
{:excoveralls, "~> 0.17", only: :test},
{:styler, "~> 0.9", 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