-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
89 lines (79 loc) · 2.03 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
defmodule Eventful.MixProject do
@moduledoc false
use Mix.Project
@version "3.1.1"
def project do
[
app: :eventful,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
docs: docs(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
description: "Provide Event tracking for your Ecto Model",
files: ["lib", "mix.exs", "README.md"],
maintainers: ["Zack Siri"],
licenses: ["MIT"],
links: %{github: "https://github.com/zacksiri/eventful"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[test: ["ecto.create --quiet", "ecto.migrate", "test"]]
end
defp docs do
[
source_ref: "#{@version}",
main: "getting-started",
extra_section: "GUIDES",
extras: extras(),
groups_for_extras: groups_for_extras()
]
end
defp extras do
[
"guides/introduction/getting-started.md",
"guides/introduction/triggers.md",
"guides/introduction/guards.md"
]
end
defp groups_for_extras do
[
Introduction: ~r/guides\/introduction\/.?/
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto, "~> 3.0"},
{:ecto_sql, "~> 3.0"},
{:jason, "~> 1.0"},
{:postgrex, "~> 0.14", only: :test},
{:excoveralls, "~> 0.10", only: :test},
{:credo, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :test], runtime: false}
]
end
end