-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
134 lines (116 loc) · 3.82 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
defmodule Auth.Mixfile do
use Mix.Project
def project do
[
app: :auth,
version: "1.6.6",
elixir: "~> 1.12",
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.6.5"},
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.7.1"},
{:postgrex, ">= 0.15.13"},
{:phoenix_html, "~> 3.2.0"},
{:phoenix_live_reload, "~> 1.4.1", only: :dev},
{:phoenix_live_view, "~> 0.17.5"},
{:floki, ">= 0.32.0", only: :test},
# {:phoenix_live_dashboard, "~> 0.6.1"},
{:esbuild, "~> 0.4", runtime: Mix.env() == :dev},
# {:swoosh, "~> 1.5.1"},
{:telemetry_metrics, "~> 0.6.1"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.22.0"},
{:jason, "~> 1.3"},
{:plug_cowboy, "~> 2.5.2"},
# Auth:
# https://github.com/dwyl/elixir-auth-github
{:elixir_auth_github, "~> 1.6.1"},
# https://github.com/dwyl/elixir-auth-google
{:elixir_auth_google, "~> 1.6.2"},
# Check/get Environment Variables: https://github.com/dwyl/envar
{:envar, "~> 1.1.0"},
# https://github.com/dwyl/auth_plug
{:auth_plug, "~> 1.4"},
# https://github.com/dwyl/rbac
{:rbac, "~> 0.7"},
# Field Validation and Encryption: github.com/dwyl/fields
{:fields, "~> 2.8.2"},
# Base58 Encodeing: https://github.com/dwyl/base58
{:b58, "~>1.0.2"},
# Useful functions: https://github.com/dwyl/useful
{:useful, "~> 0.4.0"},
# Ping to Wake Heroku Instance: https://github.com/dwyl/ping
{:ping, "~> 1.1.0"},
# Check test coverage
{:excoveralls, "~> 0.15.1", only: :test},
# Property based tests: github.com/dwyl/learn-property-based-testing
{:stream_data, "~> 0.5.0", only: :test},
# Create Documentation for publishing Hex.docs:
{:ex_doc, "~> 0.28", only: :dev},
{:credo, "~> 1.4", only: [:dev], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:sobelow, "~> 0.11.1", 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"],
"assets.deploy": ["esbuild default --minify", "phx.digest"]
]
end
defp package() do
[
files: ~w(lib LICENSE mix.exs README.md),
name: "auth",
licenses: ["GPL-2.0-or-later"],
maintainers: ["dwyl"],
links: %{"GitHub" => "https://github.com/dwyl/auth"}
]
end
end