Packages

Elixir library for generating HTTP clients from OpenAPI V3 json specifications

Current section

Files

Jump to
ex_oapi priv templates app_mode mix.eex
Raw

priv/templates/app_mode/mix.eex

defmodule <%= @title %>.MixProject do
use Mix.Project
def project do
[
app: <%= @app_name %>,
version: "<%= @app_version %>",
elixir: "<%= @elixir_version %>",
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: "https://github.com/mnussbaumer/ex_oapi",
homepage_url: "https://hexdocs.pm/ex_oapi/readme.html",
description: ~s(<%= @description %>),
package: [
licenses: ["MIT"],
exclude_patterns: [~r/.*~$/, ~r/#.*#$/],
links: %{
"github/readme" => "https://github.com/mnussbaumer/ex_oapi"
}
],
docs: [
main: "<%= @title %>",
extras: ["README.md"],
nest_modules_by_prefix: [
<%= @schemas_title %>,
<%= @sdk_title %>
]
]
]
end
def application, do: [extra_applications: [:logger]]
defp deps do
[
{:ex_oapi, "~> 0.1"},
{:ex_doc, "~> 0.24", only: :dev, runtime: false}
]
end
end