-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
92 lines (83 loc) · 2.26 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
defmodule EctoWatch.MixProject do
use Mix.Project
@source_url "https://github.com/cheerfulstoic/ecto_watch"
def project do
[
app: :ecto_watch,
version: "0.12.2",
elixir: "~> 1.10",
description:
"EctoWatch allows you to easily get Phoenix.PubSub notifications directly from postgresql.",
licenses: ["MIT"],
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "EctoWatch",
docs: docs()
]
end
defp package do
[
maintainers: ["Brian Underwood"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
Changelog: "#{@source_url}/blob/main/CHANGELOG.md"
}
]
end
# 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
[
{:nimble_options, "~> 1.1"},
{:postgrex, ">= 0.0.0"},
{:phoenix_pubsub, ">= 1.0.0"},
{:jason, ">= 1.0.0"},
{:ecto_sql, ">= 3.0.0"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.0", only: [:dev, :test]},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
extra_section: "GUIDES",
source_url: @source_url,
skip_undefined_reference_warnings_on: ["CHANGELOG.md"],
extras: extras(),
# ,
groups_for_extras: groups_for_extras()
# main: "Getting Started",
# api_reference: false
]
end
def extras() do
[
"guides/introduction/Getting Started.md",
"guides/introduction/Tracking columns and using labels.md",
"guides/introduction/Getting additional values.md",
"guides/introduction/Watching without a schema.md",
"guides/introduction/Unsubscribing.md",
"guides/introduction/Debugging.md",
"guides/introduction/Notes.md",
"guides/howtos/Upgrading Versions.md",
"guides/other/Potental TODOs.md",
"CHANGELOG.md"
]
end
defp groups_for_extras do
[
Introduction: ~r/guides\/introduction\/.?/,
# Cheatsheets: ~r/cheatsheets\/.?/,
"How-To's": ~r/guides\/howtos\/.?/,
Other: ~r/guides\/other\/.?/
]
end
end