-
Notifications
You must be signed in to change notification settings - Fork 13
/
mix.exs
113 lines (98 loc) · 2.48 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
defmodule BlueBird.Mixfile do
use Mix.Project
@version "0.4.2"
@url "https://github.com/KittyHeaven/blue_bird"
@maintainers [
"Djordje Atlialp",
"Mathias Polligkeit"
]
def project do
[
name: "BlueBird",
app: :blue_bird,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
description: description(),
package: package(),
deps: deps(),
docs: docs(),
dialyzer: dialyzer()
]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[
registered: [BlueBird.ConnLogger],
mod: {BlueBird, []},
env: [
docs_path: "docs"
]
]
end
# Specifies which paths to compile per environment
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib", "test/support/examples"]
defp deps do
[
# Static code analysis
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
# Coverage
{:excoveralls, "~> 0.10.4", only: [:test]},
# Docs
{:ex_doc, ">= 0.16.4", only: :dev},
# Phoenix Framework
{:phoenix, ">= 1.3.0", optional: true},
# Composable modules
{:plug, ">= 1.4.3"},
# JSON library
{:jason, "~> 1.1"}
]
end
defp docs do
[
extras: ["README.md"],
source_ref: "v#{@version}"
]
end
defp dialyzer do
[plt_add_apps: [:mix, :phoenix]]
end
defp description do
"""
BlueBird generates API documentation from annotations in controllers actions
and tests cases.
"""
end
defp package do
[
maintainers: @maintainers,
licenses: ["MIT"],
links: %{"Github" => @url},
files: ~w(lib) ++ ~w(mix.exs README.md LICENSE)
]
end
def blue_bird_info do
[
host: "https://justiceisusefulwhenmoneyisuseless.fake",
title: "Fancy API",
description: """
And the pilot likewise, in the strict sense of the term, is a
ruler of sailors and not a mere sailor.
""",
terms_of_service: "The terms of service have changed."
]
end
end