forked from mneudert/plug_accesslog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
56 lines (47 loc) · 1.5 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
defmodule Plug.AccessLog.Mixfile do
use Mix.Project
@url_docs "http://hexdocs.pm/plug_accesslog"
@url_github "https://github.com/mneudert/plug_accesslog"
def project do
[ app: :plug_accesslog,
name: "Plug.AccessLog",
description: "Plug for writing access logs",
package: package,
version: "0.10.0-dev",
elixir: ">= 1.0.0",
deps: deps(Mix.env),
docs: docs,
test_coverage: [ tool: ExCoveralls ]]
end
def application do
[ applications: [ :logger ],
mod: { Plug.AccessLog.Application, [] } ]
end
def deps(:docs) do
deps(:prod) ++
[ { :earmark, ">= 0.1.0", optional: true },
{ :ex_doc, ">= 0.8.0", optional: true } ]
end
def deps(:test) do
deps(:prod) ++
[ { :dialyze, ">= 0.2.0", optional: true },
{ :excoveralls, ">= 0.3.0", optional: true } ]
end
def deps(_) do
[ { :timex, ">= 2.1.0" },
{ :cowboy, ">= 1.0.0", optional: true },
{ :plug, ">= 1.0.0", optional: true } ]
end
def docs do
[ main: "README",
readme: "README.md",
source_ref: "master",
source_url: @url_github ]
end
def package do
%{ contributors: [ "Constantin Rack", "Marc Neudert", "Roman Chvanikoff" ],
files: [ "CHANGELOG.md", "LICENSE", "mix.exs", "README.md", "lib" ],
licenses: [ "Apache 2.0" ],
links: %{ "Docs" => @url_docs, "Github" => @url_github }}
end
end