-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
69 lines (62 loc) · 1.49 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
defmodule AshQueryBuilder.MixProject do
use Mix.Project
@app :ash_query_builder
@name "AshQueryBuilder"
@description "A simple query builder helper for Ash.Query"
@version "0.9.0"
@github "https://github.com/sezaru/#{@app}"
@author "Eduardo Barreto Alexandre"
@license "MIT"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.14",
name: @name,
description: @description,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env()
]
end
def application, do: [extra_applications: [:logger]]
defp deps do
[
{:ex_doc, "~> 0.29", only: [:dev, :docs], runtime: false},
{:excoveralls, "~> 0.16", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ash, "~> 3.0"},
{:memoize, "~> 1.4"}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @github,
extras: [
"README.md"
]
]
end
defp package do
[
name: @app,
maintainers: [@author],
licenses: [@license],
links: %{"Github" => @github}
]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
end
end