-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
144 lines (134 loc) · 3.34 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
defmodule Cizen.MixProject do
use Mix.Project
def project do
[
app: :cizen,
version: "0.18.1",
package: package(),
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Cizen",
docs: docs(),
source_url: "https://github.com/Hihaheho-Studios/Cizen",
description: """
Build highly concurrent, monitorable, and extensible applications with a collection of automata.
""",
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[
start_phases: [start_children: [], start_daemons: []],
extra_applications: [:logger],
mod: {Cizen.Application, []},
env: [event_router: Cizen.DefaultEventRouter]
]
end
defp package do
[
links: %{gitlab: "https://gitlab.com/cizen/cizen"},
licenses: ["MIT"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:recon, "~> 2.5", only: :test},
{:uuid, "~> 1.1"},
{:poison, "~> 4.0", only: :test, runtime: false},
{:credo, "~> 0.10.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.3", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.8", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.23.0", only: :dev},
{:mock, "~> 0.3", only: :test}
]
end
defp docs do
[
main: "readme",
extra_section: "GUIDES",
groups_for_modules: groups_for_modules(),
extras: extras(),
groups_for_extras: groups_for_extras()
]
end
defp extras do
[
"README.md",
"guides/getting_started.md",
"guides/basic_concepts/event.md",
"guides/basic_concepts/pattern.md",
"guides/basic_concepts/saga.md",
"guides/basic_concepts/effect.md",
"guides/basic_concepts/test.md",
]
end
defp groups_for_extras do
[
Guides: ~r/guides\/[^\/]+\.md/,
"Basic Concepts": ~r/guides\/basic_concepts\/.?/,
]
end
defp groups_for_modules do
[
Automaton: [
Cizen.Automaton
],
Dispatchers: [
Cizen.Dispatcher,
Cizen.Event,
Cizen.Pattern
],
Effects: [
Cizen.Effects,
Cizen.Effects.All,
Cizen.Effects.Chain,
Cizen.Effects.Dispatch,
Cizen.Effects.End,
Cizen.Effects.Fork,
Cizen.Effects.Map,
Cizen.Effects.Monitor,
Cizen.Effects.Race,
Cizen.Effects.Receive,
Cizen.Effects.Resume,
Cizen.Effects.Start,
Cizen.Effects.Subscribe
],
Effectful: [
Cizen.Effectful
],
Saga: [
Cizen.Saga,
Cizen.Saga.Crashed,
Cizen.Saga.Finish,
Cizen.Saga.Finished,
Cizen.Saga.Started,
Cizen.SagaRegistry,
],
Test: [
Cizen.Test
]
]
end
defp aliases do
[
credo: ["credo --strict"],
check: [
"compile --warnings-as-errors",
"format --check-formatted --check-equivalent",
"credo --strict",
"dialyzer --no-compile --halt-exit-status"
]
]
end
end