-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
61 lines (55 loc) · 1.42 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
defmodule Trunk.Mixfile do
use Mix.Project
@github_url "https://github.com/andrewtimberlake/trunk"
@version "1.5.1"
def project do
[
app: :trunk,
version: @version,
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
docs: docs()
]
end
defp package do
[
description: "A file attachment/storage library for Elixir",
maintainers: ["Andrew Timberlake"],
licenses: ["MIT"],
links: %{"GitHub" => @github_url}
]
end
def docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"],
"USAGE.md": [title: "Usage"],
"CHANGELOG.md": [title: "Change Log"]
],
main: "readme",
source_url: @github_url,
source_ref: @version,
formatters: ["html"]
]
end
def application do
# Specify extra applications you'll use from Erlang/Elixir
[extra_applications: [:logger]]
end
defp deps do
[
{:briefly, "~> 0.4.0 or ~> 0.5.0"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:ex_aws_s3, "~> 2.0", optional: true},
{:hackney, ">= 1.7.0", optional: true},
{:jason, ">= 1.0.0", optional: true},
{:sweet_xml, "~> 0.6", optional: true},
{:bypass, "~> 2.0", only: :test},
{:credo, "~> 1.0", only: [:dev, :test]}
]
end
end