Current section

Files

Jump to

mix.exs

defmodule Ecto.Adapters.DynamoDB.Mixfile do
use Mix.Project
def project do
[
app: :ecto_adapters_dynamodb,
version: "3.6.1",
elixir: "~> 1.15",
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"
]
end
def cli do
[
preferred_envs: [
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.13"},
{: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.40.3", 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