-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmix.exs
86 lines (80 loc) · 2.19 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
defmodule Lucidboard.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :lucidboard,
version: "0.0.1",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
releases: releases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[
mod: {Lucidboard.Application, []},
extra_applications: [
:logger,
:runtime_tools,
:scrivener_ecto,
:ueberauth
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:phoenix, "~> 1.4.0"},
{:phoenix_pubsub, "~> 1.1"},
{:ecto_sql, "~> 3.0"},
{:phoenix_ecto, "~> 4.0"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.11"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:gettext, "~> 0.11"},
{:plug_cowboy, "~> 2.0"},
{:jason, "~> 1.0"},
{:focus, "~> 0.3.5"},
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:mix_test_watch, "~> 0.8", only: :dev, runtime: false},
{:phoenix_live_view, "~> 0.1.0"},
{:ueberauth_github, "~> 0.7"},
{:ueberauth_pingfed,
git: "https://github.com/borodark/ueberauth_pingfed.git"},
{:timex, "~> 3.1"},
{:scrivener_ecto, "~> 2.0"},
{:ecto_enum, "~> 1.2"},
{:earmark, "~> 1.3.5"}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"],
lint: "credo --strict"
]
end
defp releases do
[
lucidboard: [
include_executables_for: [:unix],
applications: [runtime_tools: :permanent]
]
]
end
end