-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
53 lines (48 loc) · 1.18 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
defmodule Composite.MixProject do
use Mix.Project
@version "0.5.0"
def project do
[
app: :composite,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_apps: [:ecto]],
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
def package do
[
description: "A utility for writing dynamic queries.",
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/fuelen/composite",
"Article: Writing dynamic Ecto queries with Composite" =>
"https://dev.to/arturplysiuk/writing-dynamic-ecto-queries-with-composite-26g4"
}
]
end
defp deps do
[
{:ecto, ">= 1.0.0", optional: true},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.22", only: :dev, runtime: false}
]
end
defp docs do
[
main: "readme",
extras: ["README.md": [title: "README"]],
deps: [ecto: "https://hexdocs.pm/ecto/"],
source_url: "https://github.com/fuelen/composite",
source_ref: "v#{@version}"
]
end
end