Current section

Files

Jump to
funx mix.exs
Raw

mix.exs

defmodule Funx.MixProject do
use Mix.Project
@version "0.8.2"
def project do
[
app: :funx,
version: @version,
elixir: "~> 1.16 or ~> 1.17 or ~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
consolidate_protocols: Mix.env() != :test,
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_add_apps: [:elixir, :mix],
plt_core_path: "_build/#{Mix.env()}",
plt_file: {:no_warn, "_build/#{Mix.env()}/dialyzer.plt"}
],
docs: [
main: "readme",
extras: [
"README.md",
"CHANGELOG.md",
"FORMATTER_EXPORT.md",
"RESOURCES.md",
"LICENSE",
"guides/dsl/overview.md",
"guides/dsl/either.md",
"guides/dsl/maybe.md",
"guides/dsl/ord.md",
"guides/dsl/eq.md",
"guides/dsl/predicate.md",
"guides/dsl/validate.md"
],
filter_prefix: "Examples",
source_url: "https://github.com/JKWA/funx",
source_ref: "v#{@version}",
source_url_pattern: "https://github.com/JKWA/funx/blob/v#{@version}/%{path}#L%{line}",
canonical: "https://hexdocs.pm/funx",
groups_for_extras: [
Resources: ["RESOURCES.md"],
Guides: ["README.md", "FORMATTER_EXPORT.md"],
DSL: [
"guides/dsl/overview.md",
"guides/dsl/either.md",
"guides/dsl/maybe.md",
"guides/dsl/ord.md",
"guides/dsl/eq.md",
"guides/dsl/predicate.md",
"guides/dsl/validate.md"
]
]
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
package: [
name: "funx",
description:
"Functional programming abstractions for Elixir (Beta release: APIs may change before 1.0)",
licenses: ["MIT"],
maintainers: ["Joseph Koski"],
links: %{
"Docs" => "https://hexdocs.pm/funx",
"Website" => "https://www.funxlib.com",
"GitHub" => "https://github.com/JKWA/funx",
"Blog Posts" => "https://www.joekoski.com/categories/funx/",
"Advanced FP with Elixir (Book)" =>
"https://pragprog.com/titles/jkelixir/advanced-functional-programming-with-elixir"
},
files: [
".formatter.exs",
"lib",
"mix.exs",
"README.md",
"CHANGELOG.md",
"FORMATTER_EXPORT.md",
"RESOURCES.md",
"LICENSE",
"usage-rules",
"usage-rules.md"
]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:castore, "~> 1.0", only: [:dev, :test]},
{:excoveralls, "~> 0.18", only: [:dev, :test], runtime: false},
{:stream_data, "~> 1.1", only: :test},
{:telemetry, "~> 1.0"}
]
end
end