forked from smpallen99/ex_admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
70 lines (64 loc) · 2.06 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
defmodule ExAdmin.Mixfile do
use Mix.Project
@version "0.9.0-dev"
def project do
[ app: :ex_admin,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
name: "ExAdmin",
docs: [extras: ["README.md"], main: "ExAdmin"],
deps: deps(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test],
description: """
An Elixir Phoenix Auto Administration Package.
"""
]
end
def application do
[ applications: applications(Mix.env)]
end
defp applications(:test) do
[:plug, :cowboy | applications(:prod)]
end
defp applications(_) do
[:gettext, :phoenix, :ecto, :inflex, :scrivener, :scrivener_ecto, :csvlixir, :logger, :ex_queb, :xain]
end
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
defp deps do
[
{:decimal, "~> 1.0"},
{:phoenix, "~> 1.2"},
{:phoenix_html, "~> 2.6"},
{:ecto, "~> 2.1"},
{:phoenix_ecto, "~> 3.2"},
{:postgrex, "~> 0.13", only: :test},
{:floki, "~> 0.8", only: :test},
{:cowboy, "~> 1.0"},
{:phoenix_html, "~> 2.5"},
{:inflex, "~> 1.7"},
{:scrivener_ecto, "~> 1.1"},
{:xain, "~> 0.6"},
{:csvlixir, "~> 1.0.0"},
{:exactor, "~> 2.2.0"},
{:ex_doc, "~> 0.11", only: :dev},
{:earmark, "~> 0.1", only: :dev},
{:ex_queb, "~> 1.0"},
{:excoveralls, "~> 0.5", only: :test},
{:gettext, "~> 0.11"},
{:hound, "~> 1.0", only: :test}
]
end
defp package do
[ maintainers: ["Stephen Pallen", "Roman Smirnov"],
licenses: ["MIT"],
links: %{ "Github" => "https://github.com/smpallen99/ex_admin" },
files: ~w(lib priv web README.md package.json mix.exs LICENSE brunch-config.js AdminLte-LICENSE)]
end
end