forked from mirego/accent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
139 lines (118 loc) · 3.56 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
defmodule Accent.Mixfile do
use Mix.Project
@version "1.11.3"
def project do
[
app: :accent,
version: @version,
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
xref: [exclude: IEx],
deps: deps(),
releases: releases(),
test_coverage: [tool: ExCoveralls]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {Accent, []}, extra_applications: [:logger, :canada]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "vendor", "test/support"]
defp elixirc_paths(_), do: ["lib", "web", "vendor"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
# Framework
{:phoenix, "~> 1.4"},
{:phoenix_html, "~> 2.10"},
# Plugs
{:plug_assign, "~> 1.0.0"},
{:canary, "~> 1.1.0"},
{:corsica, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:cowboy, "~> 2.0", override: true},
{:plug, "1.10.4", override: true},
# Database
{:ecto, "~> 3.2", override: true},
{:ecto_sql, "~> 3.2"},
{:ecto_dev_logger, "~> 0.4"},
{:postgrex, "~> 0.14"},
# Phoenix data helpers
{:phoenix_ecto, "~> 4.0"},
{:scrivener_ecto, "~> 2.0"},
{:dataloader, "~> 1.0"},
# GraphQL
{:absinthe, "~> 1.4"},
{:absinthe_plug, "~> 1.4"},
{:absinthe_error_payload, "~> 1.0"},
# Utils
{:p1_utils, "1.0.15", override: true},
{:fast_yaml, github: "processone/fast_yaml", ref: "e789f68895f71b7ad31057177810ca0161bf790e"},
{:jsone, "~> 1.4"},
{:mochiweb, "~> 2.18"},
{:httpoison, "~> 1.1"},
{:gettext, "~> 0.17"},
{:csv, "~> 2.0"},
{:php_assoc_map, "~> 0.5"},
{:jason, "~> 1.2", override: true},
{:erlsom, "~> 1.5"},
{:xml_builder, "~> 2.0"},
# Auth
{:oauth2, "~> 2.0", override: true},
{:ueberauth, "~> 0.6"},
{:ueberauth_google, "~> 0.6"},
{:ueberauth_github, "~> 0.7"},
{:ueberauth_gitlab_strategy, "~> 0.3"},
{:ueberauth_slack, github: "ueberauth/ueberauth_slack", ref: "525594c870f959ab"},
{:ueberauth_discord, "~> 0.5"},
{:ueberauth_microsoft, "~> 0.7"},
# Errors
{:sentry, "~> 7.0"},
# Mails
{:bamboo, "~> 1.0"},
{:bamboo_smtp, "~> 2.0"},
# Events handling
{:oban, "~> 2.0"},
# Metrics and monitoring
{:new_relic_agent, "~> 1.27"},
{:new_relic_absinthe, "~> 0.0"},
# Mock testing
{:mox, "~> 0.3", only: :test},
{:mock, "~> 0.3.0", only: :test},
# Google API authentication
{:goth, "~> 1.1"},
# Network request
{:tesla, "~> 1.3"},
# Dev
{:dialyxir, "~> 1.0", only: ~w(dev test)a, runtime: false},
{:credo, ">= 0.0.0", only: ~w(dev test)a},
{:credo_envvar, "~> 0.1.0", only: ~w(dev test)a, runtime: false},
{:excoveralls, "~> 0.8", only: :test},
{:phoenix_live_reload, "~> 1.0", only: :dev}
]
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"]
]
end
defp releases do
[
accent: [
version: @version,
applications: [accent: :permanent]
]
]
end
end