-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathmix.exs
86 lines (77 loc) · 1.85 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
defmodule Meilisearch.MixProject do
use Mix.Project
@version "0.20.0"
@github_url "https://github.com/robottokauf3/meilisearch-elixir"
def project do
[
app: :meilisearch,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.details": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
dialyzer: dialyzer(),
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger, :httpoison]
]
end
defp deps do
[
{:httpoison, "~> 1.8"},
{:jason, "~> 1.2"},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev], runtime: false},
{:excoveralls, "~> 0.14.0", only: [:test]},
{:ex_doc, "~> 0.25", only: [:dev], runtime: false},
{:mix_test_watch, "~> 1.1", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp description() do
"""
Lightweight Elixir client for MeiliSearch search engine.
"""
end
defp package() do
[
files: ["lib", "mix.exs", "README.md"],
maintainers: ["Rob Kaufmann"],
licenses: ["MIT"],
links: %{
"Github" => @github_url
}
]
end
defp docs do
[
main: "readme",
name: "MeiliSearch",
source_ref: "v#{@version}",
source_url: @github_url,
extras: [
"README.md",
"CHANGELOG.md"
]
]
end
defp dialyzer do
[
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
end