-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmix.exs
More file actions
72 lines (65 loc) · 1.81 KB
/
Copy pathmix.exs
File metadata and controls
72 lines (65 loc) · 1.81 KB
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
defmodule MagicAuth.MixProject do
use Mix.Project
@version "0.2.0"
@scm_url "https://github.com/gushonorato/magic_auth"
def project do
[
app: :magic_auth,
version: @version,
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
description: "An Elixir authentication library designed for effortless setup"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix_live_view, "~> 1.0"},
{:phoenix, "~> 1.7"},
{:ecto, "~> 3.10"},
{:ecto_sql, "~> 3.10", only: [:dev, :test]},
{:postgrex, ">= 0.0.0"},
{:mix_test_watch, "~> 1.2", only: [:dev], runtime: false},
{:bcrypt_elixir, "~> 3.1"},
{:mox, "~> 1.0", only: :test},
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
]
end
defp docs do
[
source_ref: "v#{@version}",
assets: %{"guides/assets" => "assets"},
main: "getting_started",
extras: [
"guides/getting_started.md",
"guides/log_out_user_or_session.md",
"guides/customization.md",
"guides/multi_tenancy.md",
"guides/testing.md",
"CHANGELOG.md",
"LICENSE.md"
]
]
end
defp package do
[
maintainers: ["Gustavo Honorato"],
licenses: ["MIT"],
links: %{"GitHub" => @scm_url},
files: ~w(lib priv CHANGELOG.md LICENSE.md mix.exs package.json README.md .formatter.exs)
]
end
end