Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Algoliax.MixProject do
use Mix.Project
def project do
[
app: :algoliax,
version: "0.6.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
# docs
name: "Algoliax",
source_url: "https://github.com/WTTJ/algoliax",
homepage_url: "https://github.com/WTTJ/algoliax",
docs: [
# The main page in the docs
main: "Algoliax",
extras: ["README.md", "guides/examples/global.md", "guides/examples/secured_api_key.md"],
groups_for_extras: [
Examples: Path.wildcard("guides/examples/*.md")
]
],
# Hex
description: "AlgoliaSearch integration for Elixir app",
package: package()
]
end
def application do
[
extra_applications: [:logger],
mod: {Algoliax.Application, []}
]
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:hackney, "~> 1.17.0"},
{:jason, "~> 1.1"},
{:ex_doc, "~> 0.21", only: :dev, runtime: false, override: true},
{:ecto, "~> 3.0", optional: true},
{:ecto_sql, "~> 3.0", only: [:dev, :test]},
{:postgrex, ">= 0.0.0", only: [:dev, :test]},
{:inflex, "~> 2.0.0"},
{:mox, "~> 0.5", only: :test},
{:mock, "~> 0.3.0", only: :test},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:faker, "~> 0.12", only: :test},
{:excoveralls, "~> 0.10", only: :test},
{:plug_cowboy, "~> 2.0", only: :test},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false}
]
end
defp aliases do
[
# Ensures database is reset before tests are run
test: ["ecto.drop --quiet", "ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
defp package do
[
maintainers: ["Stéphane Robino"],
licenses: ["BSD-2-Clause"],
links: %{"GitHub" => "https://github.com/WTTJ/algoliax"}
]
end
end