-
Notifications
You must be signed in to change notification settings - Fork 14
/
mix.exs
87 lines (83 loc) · 2.61 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
defmodule Ecto.Adapters.DynamoDB.Mixfile do
use Mix.Project
def project do
[
app: :ecto_adapters_dynamodb,
version: "3.5.0",
elixir: "~> 1.13",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
dialyzer: [
ignore_warnings: "dialyzer_ignore.exs",
plt_add_apps: [:ecto]
],
docs: [main: "readme", extras: ["README.md"]],
description:
"A DynamoDB adapter for Ecto supporting basic queries. See https://github.com/circles-learning-labs/ecto_adapters_dynamodb for detailed instructions.",
package: package(),
source_url: "https://github.com/circles-learning-labs/ecto_adapters_dynamodb",
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
# Specify extra applications you'll use from Erlang/Elixir
[
extra_applications: [:logger],
mod: {Ecto.Adapters.DynamoDB.Application, []},
env: [
cached_tables: [],
insert_nil_fields: true,
dynamodb_local: false,
log_levels: [:info],
log_colours: %{info: :green, debug: :normal},
log_in_colour: System.get_env("MIX_ENV") == "dev",
log_path: "",
remove_nil_fields_on_update: false,
scan_all: false,
scan_limit: 100,
scan_tables: []
]
]
end
# Dependencies can be Hex packages:
#
# {:my_dep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[
{:confex, "~> 3.5.0"},
{:ecto_sql, "~> 3.11"},
{:ex_aws_dynamo, "~> 4.1"},
{:excoveralls, "~> 0.18", only: :test},
{:jason, "~> 1.0"},
{:hackney, "~> 1.6"},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.35.1", only: :dev, runtime: false},
{:mock, "~> 0.3.0", only: :test, runtime: false}
]
end
defp package do
[
# files: ["lib", "priv", "mix.exs", "README*", "readme*", "LICENSE*", "license*"],
maintainers: ["Franko Franicevich", "Darren Klein", "Gilad Barkan", "Nick Marino"],
licenses: ["Apache 2.0"],
exclude_patterns: [~r/.*~/, ~r/src\/.*\.erl/],
links: %{"GitHub" => "https://github.com/circles-learning-labs/ecto_adapters_dynamodb"}
]
end
end