Packages
Types and tools for working with Gutenberg.
Current section
Files
Jump to
Current section
Files
nldoc_gutenberg
mix.exs
mix.exs
defmodule NLdoc.Gutenberg.MixProject do
use Mix.Project
@name "NLdoc.Gutenberg"
@source_url "https://gitlab.com/toegang-voor-iedereen/backend/lib/nldoc_gutenberg"
@hex_url "https://hex.docs.pm/nldoc_gutenberg"
@description "Types and tools for working with Gutenberg."
def project do
[
app: :nldoc_gutenberg,
version: "1.0.0",
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [warnings_as_errors: true],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.cobertura": :test
],
test_coverage: [tool: ExCoveralls],
# Docs and publishing
name: @name,
source_url: @source_url,
description: @description,
docs: &docs/0,
package: package()
]
end
defp docs do
[
extras: ["README.md", "CHANGELOG.md"],
source_url: @source_url
]
end
def package do
[
files: [
"lib/",
"mix.exs",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
licenses: ["EUPL-1.2"],
links: %{
"Changelog" => @hex_url <> "/changelog.html",
"EUPL-1.2 License" => "https://joinup.ec.europa.eu/software/page/eupl",
"Source" => @source_url
}
]
end
def elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: []
]
end
defp deps do
[
{:typed_ecto_schema, "~> 0.4"},
{:polymorphic_embed, "~> 5.0"},
{:ecto, "~> 3.12"},
# Testing: coverage, JUnit-style test reports for CI, mocking and snapshot testing.
{:excoveralls, "~> 0.18", only: :test},
{:nldoc_test, "~> 2.1", only: :test},
# Linting & do
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
# Dependency auditing
{:mix_audit, "~> 2.1", only: [:dev, :test], runtime: false},
# Docs
{:ex_doc, "~> 0.37", only: :dev, runtime: false}
]
end
end