-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmix.exs
More file actions
57 lines (50 loc) · 1.37 KB
/
mix.exs
File metadata and controls
57 lines (50 loc) · 1.37 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
defmodule Upload.Mixfile do
use Mix.Project
def project do
[
app: :upload,
package: package(),
version: "0.0.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
dialyzer: [
plt_add_apps: [:ecto, :ex_aws, :ex_aws_s3],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
]
end
defp package do
[
description: "An opinionated file uploader",
files: ["lib", "config", "mix.exs", "README.md", "LICENSE.txt"],
maintainers: ["Ray Zane"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/rzane/upload"}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:uuid, "~> 1.1"},
{:plug, ">= 0.0.0"},
# S3 Adapter
{:ex_aws_s3, "~> 2.0", optional: true},
# Ecto integration
{:ecto, ">= 0.0.0", optional: true},
# Test dependencies for this package
{:hackney, ">= 0.0.0", only: :test},
{:sweet_xml, ">= 0.0.0", only: :test},
{:excoveralls, "~> 0.13", only: :test},
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
end