Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Elixir] Adding :package and :description to mix.exs template #9945

Merged
merged 2 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defmodule {{moduleName}}.Mixfile do
elixir: "~> {{supportedElixirVersion}}",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
description: "{{appDescription}}",
deps: deps()]
end

Expand Down Expand Up @@ -34,4 +36,12 @@ defmodule {{moduleName}}.Mixfile do
{{/deps}}
]
end

defp package() do
[
name: "{{#underscored}}{{packageName}}{{/underscored}}",
files: ~w(lib mix.exs README* LICENSE*),
licenses: ["{{licenseId}}"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobbbles I couldn't find a way to set licenseId - do you know how we can set that value?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was easy enough ... ory/sdk@20f602a

]
end
end
10 changes: 10 additions & 0 deletions samples/client/petstore/elixir/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defmodule OpenapiPetstore.Mixfile do
elixir: "~> 1.6",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
description: "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\",
deps: deps()]
end

Expand All @@ -33,4 +35,12 @@ defmodule OpenapiPetstore.Mixfile do
{:poison, "~> 3.0"}
]
end

defp package() do
[
name: "openapi_petstore",
files: ~w(lib mix.exs README* LICENSE*),
licenses: [""]
]
end
end