-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
59 lines (54 loc) · 1.39 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
defmodule Bling.MixProject do
use Mix.Project
def project do
[
app: :bling,
version: "0.4.1",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Add recurring billing to your Phoenix application",
package: [
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/ozziexsh/bling"
},
files: ~w(priv/static lib stubs mix.exs README.md .formatter.exs)
],
docs: [
main: "readme",
extras: ["README.md"]
],
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
consolidate_protocols: Mix.env() != :test
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.29.4"},
{:ecto_sql, "~> 3.6"},
{:phoenix, "~> 1.7.2"},
{:phoenix_live_view, "~> 0.20"},
{:plug, "~> 1.14"},
{:stripity_stripe, "~> 2.17"},
{:postgrex, ">= 0.0.0", only: :test},
{:faker, "~> 0.17", only: :test},
{:jason, "~> 1.4"}
]
end
defp aliases do
[
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end