forked from KittyHeaven/blue_bird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
111 lines (96 loc) · 2.38 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
defmodule BlueBird.Mixfile do
use Mix.Project
@version "0.3.7"
@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"]
defp deps do
[
# Static code analysis
{:credo, "~> 0.8.4", only: [:dev, :test]},
{:dialyxir, "~> 0.5.0", only: [:dev, :test], runtime: false},
# Coverage
{:excoveralls, "~> 0.7", only: [:test]},
# Docs
{:ex_doc, ">= 0.16.1", only: :dev},
# Phoenix Framework
{:phoenix, "~> 1.3.0", optional: true},
# Composable modules
{:plug, ">= 1.3.0"},
# JSON library
{:poison, ">= 2.0.0"}
]
end
defp docs do
[
extras: ["README.md"],
source_ref: "v#{@version}"
]
end
defp dialyzer do
[]
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.
"""
]
end
end