-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
85 lines (75 loc) · 1.91 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
defmodule Radical.MixProject do
use Mix.Project
def project do
[
app: :radical,
version: "0.0.0",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
preferred_cli_env: [
bless: :test,
test: :test
],
test_coverage: [tool: ExCoveralls],
package: package(),
description: description(),
source_url: "https://github.com/NFIBrokerage/radical",
name: "Radical"
]
end
defp elixirc_paths(:test), do: ["lib", "test/fixtures"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger],
mod: {Radical.Application, []}
]
end
defp deps do
[
{:extreme, git: "[email protected]:the-mikedavis/extreme.git", branch: "persistent-subscription"},
{:broadway, "~> 0.6"},
{:jason, ">= 0.0.0"},
# docs
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
# test
{:excoveralls, "~> 0.7", only: :test},
{:credo, "~> 0.9.1", only: :test, runtime: false}
]
end
defp package do
[
name: "radical",
files: ~w(lib .formatter.exs mix.exs README.md),
licenses: [],
organization: "cuatro",
links: %{"GitHub" => "https://github.com/NFIBrokerage/radical"}
]
end
defp description do
"playground for EventStore persistent subscriptions"
end
defp aliases do
[
bless: [&bless/1]
]
end
defp bless(_) do
[
{"compile", ["--warnings-as-errors", "--force"]},
{"coveralls.html", []},
{"format", ["--check-formatted"]},
{"credo", []}
]
|> Enum.each(fn {task, args} ->
[:cyan, "Running #{task} with args #{inspect(args)}"]
|> IO.ANSI.format()
|> IO.puts()
Mix.Task.run(task, args)
end)
end
end
# Generated by Elixir.Gaas.Generators.Simple.LibraryMix