-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
105 lines (94 loc) · 2.22 KB
/
mix.exs
File metadata and controls
105 lines (94 loc) · 2.22 KB
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
defmodule Apify.MixProject do
use Mix.Project
@version "0.0.0"
@source_url "https://github.com/chazwatkins/apify"
def project do
[
app: :apify,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :dev,
name: "Apify API Client",
source_url: @source_url,
homepage_url: @source_url,
deps: deps(),
docs: docs(),
package: package()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
if Mix.env() == :prod do
[
extra_applications: [:logger]
]
else
[
extra_applications: [:logger]
]
end
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# HTTP client
{:req, "~> 0.5", optional: true},
# JSON serialization
{:jason, "~> 1.4", optional: true},
# Telemetry for instrumentation
{:telemetry, "~> 1.0"},
# For webhook signature verification
{:plug_crypto, "~> 1.2", optional: true},
# Documentation
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
# Development tools
{:igniter, "~> 0.5", only: [:dev, :test]},
{:oapi_generator, github: "chazwatkins/open-api-generator", only: :dev, runtime: false}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "Overview"]
],
groups_for_modules: [
Client: [
Apify,
Apify.Client,
Apify.Config,
Apify.Error,
Apify.Operation,
Apify.Webhook,
Apify.Encoder
],
Testing: [
Apify.Testing,
Apify.Plugin.TestClient
],
Plugins: ~r/Apify.Plugin/,
Operations: [
# These will be filled in by the generator
],
Schemas: ~r//
]
]
end
defp package do
[
description: "Apify API Client for Elixir",
files: [
".api-version",
".formatter.exs",
"lib",
"LICENSE",
"mix.exs",
"README.md"
],
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
maintainers: ["Chaz Watkins"]
]
end
end