-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmix.exs
More file actions
98 lines (85 loc) · 2.21 KB
/
mix.exs
File metadata and controls
98 lines (85 loc) · 2.21 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
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
defmodule PgFlow.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/pgflow-dev/pgflow"
def project do
[
app: :pgflow,
version: @version,
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
# Hex
description: "Elixir implementation of pgflow workflow engine",
package: package(),
# Dialyzer
dialyzer: [plt_add_apps: [:mix, :inets]],
# Docs
name: "PgFlow",
source_url: @source_url,
docs: docs()
]
end
def application do
[
extra_applications: [:logger],
mod: {PgFlow.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Core
{:ecto_sql, "~> 3.10"},
{:postgrex, "~> 0.17"},
{:jason, "~> 1.4"},
{:telemetry, "~> 1.2"},
{:nimble_options, "~> 1.0"},
{:crontab, "~> 1.1"},
# Dashboard (optional)
{:phoenix_live_view, "~> 1.0", optional: true},
{:phoenix, "~> 1.7", optional: true},
{:live_filter, github: "agoodway/livefilter", optional: true},
{:tz, "~> 0.28", optional: true},
{:ecto_evolver, "~> 0.1.0"},
# Dev/Test
{:ex_doc, "~> 0.40", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:doctor, "~> 0.22.0", only: :dev, runtime: false}
]
end
defp aliases do
[
setup: ["deps.get"],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
# Run to check the quality of your code
quality: [
"compile --warnings-as-errors",
"deps.unlock --unused",
"format --check-formatted",
"credo --strict",
"doctor",
"dialyzer"
]
]
end
defp package do
[
maintainers: ["PgFlow Team"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}"
]
end
end