forked from edgurgel/verk_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
80 lines (73 loc) · 1.87 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
74
75
76
77
78
79
80
defmodule VerkWeb.Mixfile do
use Mix.Project
@description """
A Verk dashboard
"""
def project do
[
app: :verk_web,
version: "1.5.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: Coverex.Task, coveralls: true],
name: "Verk Web",
description: @description,
package: package(),
deps: deps()
]
end
@default_config [
http: [port: 4000],
server: false,
pubsub: [name: VerkWeb.PubSub, adapter: Phoenix.PubSub.PG2]
]
def application do
[
mod: {VerkWeb, []},
env: [{VerkWeb.Endpoint, @default_config}],
applications: [
:phoenix,
:phoenix_pubsub,
:phoenix_html,
:cowboy,
:logger,
:gettext,
:verk,
:timex,
:basic_auth
]
]
end
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
defp deps do
[
{:phoenix, "~> 1.4.0"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_html, "~> 2.6"},
{:gettext, "~> 0.16"},
{:verk, "~> 1.1"},
{:plug_cowboy, "~> 2.0"},
{:plug, "~> 1.7"},
{:basic_auth, "~> 2.0"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:earmark, "~> 1.0", only: :dev},
{:ex_doc, "~> 0.13", only: :dev},
{:coverex, "~> 1.4", only: :test},
{:meck, "~> 0.8", only: :test},
{:timex, "~> 3.3.0"},
{:jason, "~> 1.1"}
]
end
defp package do
[
maintainers: ["Eduardo Gurgel Pinho", "Alisson Sales"],
licenses: ["MIT"],
links: %{"Github" => "https://github.com/edgurgel/verk_web"},
files: ["lib", "web", "priv", "mix.exs", "README*", "LICENSE*"]
]
end
end