-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmix.exs
More file actions
103 lines (93 loc) · 2.57 KB
/
mix.exs
File metadata and controls
103 lines (93 loc) · 2.57 KB
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
defmodule AshDynamo.MixProject do
use Mix.Project
@version "0.6.1"
@moduledoc "DynamoDB data layer for `Ash` resources."
def project do
[
app: :ash_dynamo,
version: @version,
elixir: "~> 1.19",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: @moduledoc,
deps: deps(),
docs: docs(),
cli: cli(),
consolidate_protocols: Mix.env() != :dev,
package: package(),
test_coverage: test_coverage()
]
end
defp docs do
[
main: "readme",
source_url: "https://github.com/rauann/ash_dynamo",
source_ref: "v#{@version}",
extra_section: "Guides",
extras: [
"README.md",
"CHANGELOG.md",
"documentation/tutorials/getting-started-with-ash-dynamo.md",
"documentation/topics/ash-features.md",
"documentation/topics/runtime-filtering.md",
"documentation/topics/scan-warning.md",
"documentation/development/testing.md",
"documentation/dsls/DSL-AshDynamo.DataLayer.md"
],
groups_for_extras: [
Development: ~r'documentation/develoment',
DSLs: ~r'documentation/dsls',
Topics: ~r'documentation/topics',
Tutorials: ~r'documentation/tutorials'
]
]
end
def package do
[
description: @moduledoc,
maintainers: ["Rauan <rauann.assis@gmail.com>"],
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/rauann/ash_dynamo",
Changelog: "https://hexdocs.pm/ash_dynamo/changelog.html"
}
]
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
[
{:ash, "~> 3.11"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_aws_dynamo, "~> 4.2"},
{:ex_doc, "~> 0.39", only: :dev, runtime: false, warn_if_outdated: true},
{:hackney, "~> 1.25"},
{:mix_test_watch, "~> 1.4", only: [:dev, :test], runtime: false},
{:sourceror, "~> 1.8", only: [:dev, :test]}
]
end
defp cli do
[
"test.watch": :test
]
end
defp test_coverage do
[
ignore_modules: [
AshDynamo.DataLayer.Dynamodb.GlobalSecondaryIndex,
AshDynamo.DataLayer.Dynamodb.Options,
AshDynamo.EmbeddedType,
~r/Inspect/,
~r/\.Test\./
],
summary: [threshold: 85]
]
end
end