-
Notifications
You must be signed in to change notification settings - Fork 30
/
mix.exs
141 lines (131 loc) · 3.2 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
defmodule Contentful.Mixfile do
use Mix.Project
alias Contentful.{
Asset,
ContentType,
Collection,
CollectionStream,
Delivery,
Entry,
Locale,
SysData,
Space
}
alias Contentful.Delivery.{Assets, ContentTypes, Entries, Locales, Spaces}
@version "0.6.0"
def project do
[
app: :contentful,
version: @version,
elixir: "~> 1.10",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
# Docs
name: "Contentful SDK",
source_url: "https://github.com/contentful-labs/contentful.ex",
docs: [
main: "Contentful",
nest_modules_by_prefix: [
Contentful,
Contentful.Delivery
],
groups_for_modules: [
APIs: [Delivery],
"Query DSL": [
Contentful.Query,
Contentful.Stream
],
Contexts: [
Assets,
ContentTypes,
Entries,
Locales,
Spaces
],
"Common Structures": [
Asset,
Asset.Fields,
Collection,
CollectionStream,
ContentType,
ContentType.Field,
Entry,
Locale,
SysData,
Space
],
Behaviours: [
Contentful.Queryable
]
],
logo: "assets/cf_logo.png"
]
]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[
{:tesla, "~> 1.4"},
{:jason, "~> 1.1"},
# dev / test
{:exvcr, "~> 0.12", only: :test},
{:dogma, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:dialyxir, "~> 1.2.0", only: [:dev], runtime: false},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
# docs
{:inch_ex, "2.0.0", only: :docs}
]
end
defp description do
"""
Contentful Elixir SDK
"""
end
defp package do
# These are the default files included in the package
[
name: :contentful,
files: [
"lib/",
"mix.exs",
"README*",
"LICENSE*"
],
maintainers: [
"David Litvak Bruno <Contentful GmbH>",
"Florian Kraft <Contentful GmbH>"
],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/contentful-labs/contentful.ex",
"Contentful" => "https://contentful.com",
"Other Contentful SDKs" => "https://www.contentful.com/developers/docs/platforms/"
}
]
end
end