-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
105 lines (98 loc) · 2.77 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
93
94
95
96
97
98
99
100
101
102
103
104
105
defmodule PushEx.MixProject do
use Mix.Project
@version "2.1.0"
def project do
[
app: :push_ex,
version: @version,
elixir: "~> 1.15.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
elixirc_options: [warnings_as_errors: true],
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "PushEx",
description:
"PushEx is an implementation of Phoenix websockets/channels which handles best practices of running websockets for you, but allows your business logic to be specified through simple behaviour modules.",
package: package(),
docs: docs()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {PushEx.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp package() do
[
maintainers: [
"Steve Bussey"
],
licenses: ["MIT"],
links: %{github: "https://github.com/pushex-project/pushex"},
files: ~w(lib) ++ ~w(mix.exs README.md)
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.7"},
{:phoenix_view, "~> 2.0"},
{:phoenix_pubsub, "~> 2.0"},
{:gettext, "~> 0.23"},
{:jason, "~> 1.4"},
{:plug_cowboy, "~> 2.6"},
{:plug, "~> 1.7"},
{:gen_stage, "~> 1.2.1"},
{:ranch_connection_drainer, "~> 0.1.0"},
# Once phoenix 1.6 is released, this can be updated to 1.0, until then warnings
{:telemetry, "~> 0.4"},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp docs() do
[
source_ref: "v#{@version}",
main: "readme",
extra_section: "GUIDES",
extras: [
"README.md",
"guides/installation/standalone.md",
"guides/usage/authentication.md",
"guides/usage/custom_plugs.md",
"guides/usage/deployment.md",
"guides/usage/instrumentation.md",
"guides/usage/js.md",
"guides/usage/pub_sub.md",
"guides/usage/push_api.md"
],
groups_for_extras: [
Installation: Path.wildcard("guides/installation/*.md"),
Usage: Path.wildcard("guides/usage/*.md")
],
groups_for_modules: [
Behaviours: [
PushEx.Behaviour.Controller,
PushEx.Behaviour.PushInstrumentation,
PushEx.Behaviour.Socket
],
"Data Types": [
PushEx.Push,
PushEx.Instrumentation.Push.Context
],
Misc: [
PushExWeb.Router.Helpers
]
]
]
end
end