-
Notifications
You must be signed in to change notification settings - Fork 18
/
mix.exs
73 lines (65 loc) · 1.73 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
defmodule Ewebmachine.Mixfile do
use Mix.Project
def version, do: "2.3.2"
@description """
Ewebmachine contains macros and plugs to allow you to compose
HTTP decision handlers and run the HTTP decision tree to get
your HTTP response. This project is a rewrite for Elixir and
Plug of basho webmachine.
"""
def project do
[
app: :ewebmachine,
version: version(),
elixir: ">= 1.13.4",
docs: docs(),
deps: deps(),
description: @description,
package: package(),
]
end
def application do
[
mod: { Ewebmachine.App, [] },
extra_applications: [:inets],
env: []
]
end
defp docs do
[
assets: "assets",
extras: [
"CHANGELOG.md": [title: "Changelog"],
"README.md": [title: "Overview"],
"pages/demystify_dsl.md": [title: "Demystify Ewebmachine DSL"],
],
main: "readme",
source_url: git_repository(),
# We need to git tag with the corresponding format.
source_ref: "v#{version()}",
]
end
defp deps do
[
{:plug, "~> 1.10"},
{:plug_cowboy, "~> 2.4"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false}
]
end
defp package do
[
links: %{
"GitHub" => git_repository(),
"Doc" => "http://hexdocs.pm/ewebmachine",
"Changelog" => "https://hexdocs.pm/ewebmachine/changelog.html",
},
maintainers: ["Arnaud Wetzel", "Yurii Rashkovskii", "Jean Parpaillon"],
licenses: ["MIT"],
files: ["lib", "priv", "mix.exs", "README*", "templates", "LICENSE*", "CHANGELOG*", "examples"],
]
end
defp git_repository do
"http://github.com/kbrw/ewebmachine"
end
end