-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
77 lines (69 loc) · 1.69 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
defmodule ObanNotifiersPhoenix.MixProject do
use Mix.Project
@source_url "https://github.com/sorentwo/oban_notifiers_phoenix"
@version "0.1.0"
def project do
[
app: :oban_notifiers_phoenix,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
docs: docs(),
preferred_cli_env: ["test.ci": :test],
# Hex
name: "Oban Notifiers Phoenix",
package: package(),
description: "An Oban Notifier built on Phoenix.PubSub"
]
end
def application do
[extra_applications: []]
end
defp package do
[
maintainers: ["Parker Selbert"],
licenses: ["Apache-2.0"],
files: ~w(lib .formatter.exs mix.exs README* CHANGELOG* LICENSE*),
links: %{
Changelog: "#{@source_url}/blob/main/CHANGELOG.md",
GitHub: @source_url
}
]
end
defp docs do
[
main: "Oban.Notifiers.Phoenix",
api_reference: false,
source_ref: "v#{@version}",
source_url: @source_url,
formatters: ["html"],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp deps do
[
{:oban, "~> 2.16"},
{:phoenix_pubsub, "~> 2.0"},
{:credo, "~> 1.7", only: [:test, :dev], runtime: false},
{:ex_doc, "~> 0.30", only: [:test, :dev], runtime: false}
]
end
defp aliases do
[
release: [
"cmd git tag v#{@version}",
"cmd git push",
"cmd git push --tags",
"hex.publish --yes"
],
"test.ci": [
"format --check-formatted",
"deps.unlock --check-unused",
"credo --strict",
"test --raise"
]
]
end
end