-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
96 lines (89 loc) · 2.25 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
defmodule Cloudevents.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :cloudevents,
description: description(),
version: "0.6.1",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
source_url: "https://github.com/kevinbader/cloudevents-ex",
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
# applications: []
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Docs:
{:ex_doc, ">= 0.22.1", only: :dev, runtime: false},
# Linting:
{:credo, ">= 1.6.0", only: [:dev, :test], runtime: false},
# Static type checks:
{:dialyxir, ">= 1.0.0", only: [:dev], runtime: false},
# Run all static code checks via `mix check`:
{:ex_check, ">= 0.11.0", only: :dev, runtime: false},
# A library for defining structs with a type without writing boilerplate code:
{:typed_struct, "~> 0.3.0"},
# JSON parser:
{:jason, "~> 1.2"},
# Avro encoding/decoding:
{:avrora, "~> 0.21", optional: true}
]
end
defp description do
"""
Elixir SDK for CloudEvents, with bindings for JSON, AVRO, HTTP, Kafka.
"""
end
defp package do
[
name: "cloudevents",
maintainers: ["Kevin Bader"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/kevinbader/cloudevents-ex"
}
]
end
defp docs do
[
main: "Cloudevents",
before_closing_body_tag: fn _format ->
"""
<script type="text/javascript">
["badges", "status"].forEach(function(id) {
var element = document.getElementById(id);
element.parentNode.removeChild(element);
});
</script>
"""
end
]
end
defp aliases do
[
release: [
"check",
fn _ ->
version = Keyword.get(project(), :version)
Mix.shell().cmd("git tag v#{version}")
Mix.shell().cmd("git push --tags")
end,
"hex.publish"
]
]
end
end