-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
mix.exs
82 lines (75 loc) · 1.99 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
defmodule OpenAPI.MixProject do
use Mix.Project
@version "0.2.0"
@source_url "https://github.com/aj-foster/open-api-generator"
def project do
[
app: :oapi_generator,
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
name: "OpenAPI Generator",
source_url: @source_url,
homepage_url: @source_url,
deps: deps(),
docs: docs(),
package: package()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
{:junit_formatter, "~> 3.4", only: [:test]},
{:yaml_elixir, "~> 2.9"}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "Overview"],
"guides/configuration.md": [title: "Configuration"],
"guides/plugins.md": [title: "Plugins"],
"guides/client-author-guide.md": [title: "Client Author Guide"],
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"],
"CONTRIBUTING.md": [title: "Contributing"],
LICENSE: [title: "License"]
],
groups_for_extras: [
Guides: ~r/guides\/.*/
],
groups_for_functions: [
"Default Implementations": & &1[:default_implementation]
],
groups_for_modules: [
Reader: ~r/OpenAPI.Reader/,
Processor: ~r/OpenAPI.Processor/,
Renderer: ~r/OpenAPI.Renderer/,
Specification: ~r/OpenAPI.Spec/
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
description: "Highly-configurable OpenAPI code generator",
files: [
"guides",
"lib",
"LICENSE",
"mix.exs",
"README.md"
],
licenses: ["MIT"],
links: %{"GitHub" => @source_url, "Sponsor" => "https://github.com/sponsors/aj-foster"},
maintainers: ["AJ Foster"]
]
end
end