-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
84 lines (73 loc) · 1.77 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
defmodule DarkEcto.MixProject do
@moduledoc """
Mix Project for `DarkEcto`
"""
use Mix.Project
@version "1.0.1"
@name "DarkEcto"
@hexpm_url "http://hexdocs.pm/dark_ecto"
@github_url "https://github.com/dark-elixir/dark_ecto"
@description "Libraries and utils for manipulating `Absinthe` or `Ecto`."
def project do
[
app: :dark_ecto,
version: @version,
deps: deps(),
start_permanent: Mix.env() == :prod,
dialyzer: [plt_add_apps: [:absinthe, :phoenix]],
# Hex
description: @description,
package: package(),
source_url: @github_url,
# Docs
name: @name,
docs: docs()
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:dark_dev, ">= 1.0.3", only: [:dev, :test], runtime: false},
{:dark_matter, ">= 1.0.3"},
{:absinthe, ">= 1.5.0", optional: true},
{:phoenix, ">= 1.5.0", optional: true},
{:ecto, ">= 3.0.0"},
{:ecto_sql, ">= 3.0.0"},
{:jason, ">= 1.0.0"}
]
end
defp package() do
[
maintainers: ["Michael Sitchenko"],
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
licenses: ["Apache-2.0"],
links: %{"GitHub" => @github_url}
]
end
defp docs do
[
main: @name,
source_ref: "v#{@version}",
canonical: @hexpm_url,
logo: "guides/images/dark-elixir.png",
extra_section: "GUIDES",
source_url: @github_url,
extras: extras(),
groups_for_extras: groups_for_extras(),
groups_for_modules: []
]
end
def extras() do
[
# "guides/introduction/Getting Started.md",
"README.md"
]
end
defp groups_for_extras do
[
# Introduction: ~r/guides\/introduction\/.?/,
]
end
end