-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathmix.exs
54 lines (47 loc) · 1.26 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
defmodule Trot.Mixfile do
use Mix.Project
@version File.read!("VERSION") |> String.trim
def project do
[app: :trot,
version: @version,
elixir: "~> 1.6",
deps: deps(),
name: "Trot",
docs: [main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}",
source_url: "https://github.com/hexedpackets/trot"],
# Hex
description: description(),
package: package()]
end
def application do
[applications: [:logger, :plug, :cowboy, :plug_heartbeat, :slime],
mod: {Trot, []}]
end
defp deps do
[
{:plug_cowboy, "~> 2.0"},
{:cowboy, "~> 2.5"},
{:poison, "~> 3.1"},
{:calliope, "~> 0.4.2"},
{:plug_heartbeat, "~> 0.2"},
{:earmark, "~> 1.2", only: :dev},
{:ex_doc, "~> 0.16", only: :dev, runtime: false},
{:inch_ex, ">= 0.0.0", only: :docs},
{:credo, "~> 0.8", only: [:dev, :test]},
{:slime, "~> 1.1.0"},
]
end
defp description do
"""
A web micro-framework based on Plug and Cowboy.
"""
end
defp package do
[maintainers: ["William Huba"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/hexedpackets/trot"},
files: ~w(mix.exs README.md LICENSE lib VERSION)]
end
end