-
Notifications
You must be signed in to change notification settings - Fork 6
/
mix.exs
74 lines (65 loc) · 1.66 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
defmodule Dilute.MixProject do
use Mix.Project
@version "2.0.0-rc.6"
def project do
[
app: :dilute,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
name: "Dilute",
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases()
]
end
def elixirc_paths(:test), do: ["test" | elixirc_paths(nil)]
def elixirc_paths(:dev), do: ["test" | elixirc_paths(nil)]
def elixirc_paths(_), do: ["lib"]
# 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, ">= 2.0.0", optional: true},
# {:ecto_sql, "~> 3.0"},
{:absinthe, "~> 1.4"},
{:ex_doc, "~> 0.20", only: :dev},
# {:myxql, ">= 0.0.0", only: :test}
{:mariaex, "~> 0.8.0", only: [:dev, :test]}
]
end
defp description() do
"Absinthe integration based on Ecto schema"
end
defp docs do
[
main: "Dilute",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/dilute",
# logo: "guides/images/e.png",
source_url: "https://github.com/frobese/dilute"
]
end
defp package() do
[
name: "dilute",
maintainers: ["Hans Gödeke"],
files: ~w(lib .formatter.exs mix.exs README* LICENSE*),
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/frobese/dilute"}
]
end
defp aliases() do
[
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
end