forked from CptBreeza/commanded-ecto-projections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
87 lines (77 loc) · 1.81 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
defmodule Commanded.Projections.Ecto.Mixfile do
use Mix.Project
@version "0.7.1"
def project do
[
app: :commanded_ecto_projections,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs()
]
end
def application do
[
extra_applications: extra_applications(Mix.env()) ++ [:ecto_sql]
]
end
# include ecto and postgrex apps in `test` environment only
defp extra_applications(:test) do
[
:logger,
:ecto,
:postgrex
]
end
defp extra_applications(_) do
[
:logger
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:commanded, ">= 0.12.0", runtime: false},
{:ecto, "~> 3.0", runtime: false},
{:ecto_sql, "~> 3.0", runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev},
{:postgrex, "~> 0.14", only: :test},
{:mix_test_watch, "~> 0.9", only: :dev, runtime: false}
]
end
defp description do
"""
Read model projections for Commanded using Ecto
"""
end
defp docs do
[
main: "Commanded.Projections.Ecto",
canonical: "http://hexdocs.pm/commanded_ecto_projections",
source_ref: "v#{@version}"
]
end
defp package do
[
files: [
"lib",
"mix.exs",
"README*",
"LICENSE*",
"priv/repo/migrations"
],
maintainers: ["Ben Smith"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/commanded/commanded-ecto-projections",
"Docs" => "https://hexdocs.pm/commanded_ecto_projections/"
}
]
end
end