-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
86 lines (78 loc) · 1.91 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 BtrzExApiClient.MixProject do
use Mix.Project
@github_url "https://github.com/Betterez/btrz-ex-api-client"
@version "0.9.3"
def project do
[
app: :btrz_ex_api_client,
version: @version,
source_url: @github_url,
homepage_url: @github_url,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
description: description()
]
end
def description do
"Betterez API Client for Elixir"
end
def package do
[
name: "btrz_ex_api_client",
maintainers: ["Betterez"],
licenses: ["MIT"],
links: %{"GitHub" => @github_url}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:httpoison, "~> 1.4"},
{:jason, "~> 1.1"},
{:btrz_ex_auth_api, "~> 1.3.0"},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:mox, "~> 0.4", only: :test}
]
end
defp docs do
[
main: "BtrzExApiClient",
source_ref: "v#{@version}",
source_url: @github_url,
extras: ["README.md"],
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules do
[
Accounts: [
BtrzExApiClient.Accounts.Account,
BtrzExApiClient.Accounts.Lexicon,
BtrzExApiClient.Accounts.Permission,
BtrzExApiClient.Accounts.Role,
BtrzExApiClient.Accounts.User
],
Inventory: [
BtrzExApiClient.Inventory.Station
],
Operations: [
BtrzExApiClient.Operations.Ticket,
BtrzExApiClient.Operations.Transaction,
BtrzExApiClient.Operations.Manifest
],
Webhooks: [
BtrzExApiClient.Webhooks.Subscription,
BtrzExApiClient.Webhooks.Undelivered
]
]
end
end