-
Notifications
You must be signed in to change notification settings - Fork 20
/
mix.exs
99 lines (88 loc) · 2.43 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
defmodule EctoShorts.MixProject do
use Mix.Project
def project do
[
app: :ecto_shorts,
version: "2.4.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Helper tools for making ecto interactions more pleasant and shorter",
docs: docs(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
doctor: :test,
coverage: :test,
dialyzer: :test,
"coveralls.lcov": :test,
"coveralls.json": :test,
"coveralls.html": :test
],
dialyzer: [
plt_add_apps: [:ex_unit, :mix],
plt_local_path: "dialyzer",
plt_core_path: "dialyzer",
plt_ignore_apps: [],
list_unused_filters: true,
ignore_warnings: ".dialyzer-ignore.exs",
flags: [:unmatched_returns, :no_improper_lists]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto, "~> 3.0"},
{:ecto_sql, "~> 3.10"},
{:postgrex, ">= 0.0.0", optional: true},
{:error_message, "~> 0.1"},
{:credo, ">= 0.0.0", only: [:dev, :test]},
{:excoveralls, ">= 0.0.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev},
{:dialyxir, "~> 1.1", only: :test, runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Mika Kalathil"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/MikaAK/ecto_shorts"},
files: ~w(mix.exs README.md CHANGELOG.md lib config)
]
end
defp docs do
[
main: "EctoShorts",
source_url: "https://github.com/MikaAK/ecto_shorts",
groups_for_modules: [
"Main Modules": [
EctoShorts.Actions,
EctoShorts.CommonChanges
],
"Support Modules": [
EctoShorts.CommonFilters,
EctoShorts.SchemaHelpers
],
"Misc Modules": [
EctoShorts.Actions.Error
],
"Query Builder Modules": [
EctoShorts.QueryBuilder,
EctoShorts.QueryBuilder.Schema,
EctoShorts.QueryBuilder.Common
]
]
]
end
end