-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmix.exs
More file actions
129 lines (119 loc) · 3.08 KB
/
mix.exs
File metadata and controls
129 lines (119 loc) · 3.08 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
defmodule Aura.MixProject do
use Mix.Project
@source_url "https://github.com/camatcode/aura"
@version "1.0.3"
def project do
[
app: :aura,
version: @version,
elixir: "~> 1.19",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
# Hex
package: package(),
description: """
An ergonomic library for investigating the Hex.pm API
""",
# Docs
name: "Aura",
docs: [
main: "Aura",
api_reference: false,
logo: "assets/aura-logo.png",
source_ref: "v#{@version}",
source_url: @source_url,
extra_section: "GUIDES",
formatters: ["html"],
extras: extras(),
groups_for_modules: groups_for_modules(),
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
]
end
defp groups_for_modules do
[
Service: [
Aura.APIKeys,
Aura.Orgs,
Aura.Packages,
Aura.Releases,
Aura.Repos,
Aura.Users
],
Model: [
Aura.Model.HexAPIKey,
Aura.Model.HexAuditLog,
Aura.Model.HexOrg,
Aura.Model.HexOrgMember,
Aura.Model.HexPackage,
Aura.Model.HexPackageDownloadStats,
Aura.Model.HexPackageMeta,
Aura.Model.HexPackageOwner,
Aura.Model.HexRelease,
Aura.Model.HexRepo,
Aura.Model.HexUser
],
Common: [
Aura.PackageTarUtil,
Aura.Requester,
Aura.Model.Common,
Aura.Common
]
]
end
def package do
[
maintainers: ["Cam Cook"],
licenses: ["Apache-2.0"],
files: ~w(lib .formatter.exs .credo.exs mix.exs README* CHANGELOG* LICENSE*),
links: %{
Website: @source_url,
Changelog: "#{@source_url}/blob/master/CHANGELOG.md",
GitHub: @source_url
}
]
end
def extras do
[
"README.md"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.cobertura": :test
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.40", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_license, "~> 0.1.0", only: [:dev, :test], runtime: false},
{:styler, "~> 1.11", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: [:test]},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_machina, "~> 2.8.0", only: :test},
{:faker, "~> 0.18", only: :test},
{:junit_formatter, "~> 3.1", only: [:test]},
{:req, "~> 0.5"},
{:proper_case, "~> 1.3"},
{:date_time_parser, "~> 1.3.0"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end