-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
119 lines (107 loc) · 3.41 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
defmodule Auth.Mixfile do
use Mix.Project
def project do
[
app: :auth,
version: "1.3.1",
elixir: "~> 1.10.4",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
c: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
dialyzer: [plt_add_deps: :transitive],
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
package: package(),
description: "Turnkey Auth Auth Application"
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Auth.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
# Phoenix core:
{:phoenix, "~> 1.5.3"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_ecto, "~> 4.2.0"},
{:ecto_sql, "~> 3.4.5"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.14.2"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:gettext, "~> 0.18.0"},
{:jason, "~> 1.2.1"},
{:plug_cowboy, "~> 2.3.0"},
# Auth:
# https://github.com/dwyl/elixir-auth-github
{:elixir_auth_github, "~> 1.4.1"},
# https://github.com/dwyl/elixir-auth-google
{:elixir_auth_google, "~> 1.3.0"},
# https://github.com/dwyl/auth_plug
{:auth_plug, "1.2.3"},
# https://github.com/dwyl/rbac
{:rbac, "~> 0.5.0"},
# Field Validation and Encryption: github.com/dwyl/fields
{:fields, "~> 2.7.1"},
# Base58 Encodeing: https://github.com/dwyl/base58
{:B58, "~> 1.0", hex: :b58},
# Useful functions: https://github.com/dwyl/useful
{:useful, "~> 0.2.0"},
# Ping to Wake Heroku Instance: https://github.com/dwyl/ping
{:ping, "~> 1.0.1"},
# Check test coverage
{:excoveralls, "~> 0.12.3", only: :test},
# Property based tests: github.com/dwyl/learn-property-based-testing
{:stream_data, "~> 0.4.3", only: :test},
# Create Documentation for publishing Hex.docs:
{:ex_doc, "~> 0.21.3", only: :dev},
{:credo, "~> 1.4", only: [:dev], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:sobelow, "~> 0.10.2", only: [:dev]}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
c: ["coveralls.html"],
"ecto.setup": ["ecto.create --quiet", "ecto.migrate --quiet", "seeds"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
seeds: ["run priv/repo/seeds.exs"],
test: ["ecto.reset", "test"]
]
end
defp package() do
[
files: ~w(lib LICENSE mix.exs README.md),
name: "auth",
licenses: ["GNU GPL v2.0"],
maintainers: ["dwyl"],
links: %{"GitHub" => "https://github.com/dwyl/auth"}
]
end
end