-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
91 lines (81 loc) · 1.81 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
defmodule Fly.Mixfile do
use Mix.Project
@version "0.1.6"
def project do
[
app: :fly,
description: description(),
package: package(),
version: @version,
elixir: "~> 1.3",
deps: deps(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
# Docs config
name: "Fly",
source_url: "https://github.com/dailydrip/fly",
homepage_url: "https://www.dailydrip.com",
docs: docs(),
]
end
def application do
[
applications: applications(Mix.env),
mod: {Fly, []}
]
end
defp applications(:test) do
applications(:prod) ++ [:dbg]
end
defp applications(:dev) do
applications(:prod) ++ [:dbg]
end
defp applications(_) do
[
:logger,
:porcelain,
:plug,
:hackney,
:lru_cache,
]
end
defp deps do
[
{:porcelain, "~> 2.0.3"},
{:plug, "~> 1.3.0"},
{:tesla, "~> 0.5.0"},
{:hackney, "~> 1.6.3"},
{:lru_cache, "~> 0.1.1"},
# Docs dependencies
{:ex_doc, "~> 0.14", only: [:docs, :dev]},
{:inch_ex, "~> 0.5", only: [:docs, :dev, :test]},
# Dev + Test dependencies
{:credo, "~> 0.5", only: [:dev, :test]},
{:dbg, "~> 1.0", only: [:dev, :test]},
]
end
defp description do
"""
An OTP application for on-the-fly file processing, from
[DailyDrip](https://www.dailydrip.com).
"""
end
defp package do
[
name: :fly,
files: ["lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Josh Adams"],
licenses: ["MIT"],
links: %{
"GitHub" => "http://github.com/dailydrip/fly"
}
]
end
defp docs do
[
main: "readme", # The main page in the docs
logo: "assets/dailydrip_white.png",
extras: ["README.md"],
]
end
end