-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathmix.exs
88 lines (82 loc) · 2.33 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
81
82
83
84
85
86
87
88
defmodule Drab.Mixfile do
use Mix.Project
@version "0.10.5"
def project do
[
app: :drab,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
package: package(),
docs: [
main: "Drab",
logo: "priv/static/drab-400.png",
# , filter_prefix: "Drab."
extras: ["README.md", "LICENSE.md", "CHANGELOG.md", "CONTRIBUTING.md"],
source_url: "https://github.com/grych/drab"
],
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
dialyzer: [plt_add_deps: :transitive, plt_add_apps: [:mix, :iex, :ex_unit]]
# compilers: [:phoenix, :gettext] ++ Mix.compilers ++ [:drab]
]
end
def application do
[
mod: {Drab.Supervisor, []},
applications: [
:phoenix,
:phoenix_pubsub,
:phoenix_html,
:cowboy,
:logger,
:deppie,
:floki,
:gettext,
:jason
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:phoenix, "~> 1.2"},
{:phoenix_html, "~> 2.13"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0 or ~> 2.2.2 or ~> 2.3"},
{:plug_cowboy, "~> 1.0 or ~> 2.0"},
{:ex_doc, "~> 0.18", only: :dev, runtime: false},
{:hound, "~> 1.0", only: [:dev, :test]},
{:inch_ex, "~> 1.0", only: [:docs], runtime: false},
{:deppie, "~> 1.0"},
{:floki, ">= 0.20.2"},
{:dialyxir, "~> 1.0.0-rc.2", only: [:dev, :test], runtime: false},
# {:credo, "~> 0.9.3", only: [:dev, :test], runtime: false},
{:jason, "~> 1.0"}
]
end
defp description() do
"""
Remote controlled frontend framework for Phoenix.
"""
end
defp package() do
[
name: :drab,
files: ["lib", "priv/templates/drab", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"],
maintainers: ["Tomek Gryszkiewicz"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/grych/drab",
"Home" => "https://tg.pl/drab"
}
]
end
end