-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
101 lines (90 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
97
98
99
100
101
defmodule Neo4ex.MixProject do
use Mix.Project
@source_url "https://github.com/appliscale/neo4ex"
@version "0.1.0"
def project do
[
app: :neo4ex,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
deps: deps(),
docs: docs(),
test_coverage: [
ignore_modules: [
~r/^Neo4ex.BoltProtocol.Structure/,
Neo4ex.PackStream.DecoderBuilder
],
summary: [
threshold: 80
]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:db_connection, "~> 2.6.0"},
# Tests
{:mox, "~> 1.0", only: [:test]},
# Linting
{:credo, "~> 1.6", only: [:dev]},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
# Documentation
# Run with: `mix docs`
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp description() do
"Neo4j driver and DSL for Elixir"
end
defp package do
[
maintainers: ["Cichacz"],
licenses: ["MIT"],
links: %{"github" => @source_url},
files: [
"lib",
"mix.exs",
"README.md",
"LICENSE"
]
]
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"CHANGELOG.md"
],
source_ref: "v#{@version}",
source_url: @source_url,
nest_modules_by_prefix: [
Neo4ex.BoltProtocol,
Neo4ex.PackStream,
Neo4ex.BoltProtocol.Structure.Graph,
Neo4ex.BoltProtocol.Structure.Graph.Legacy,
Neo4ex.BoltProtocol.Structure.Message.Request,
Neo4ex.BoltProtocol.Structure.Message.Detail,
Neo4ex.BoltProtocol.Structure.Message.Summary,
Neo4ex.BoltProtocol.Structure.Message.Extra
],
groups_for_modules: [
Structure: ~r/BoltProtocol\.Structure\.Graph/,
Message: ~r/BoltProtocol\.Structure\.Message/
]
]
end
end