Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Hugs.MixProject do
use Mix.Project
@description "A normalization/denormalization that works well with Elixir datastructures."
def project do
[
app: :hugs,
version: "0.1.13",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
description: @description,
package: package(),
source_url: "https://github.com/lud/hugs",
elixirc_paths: elixirc_paths(Mix.env())
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.6", only: [:dev], runtime: false}
]
end
def package() do
[
name: "hugs",
licenses: ["MIT"],
links: %{"Github" => "https://github.com/lud/hugs"}
]
end
defp docs do
[
formatters: ["html"],
nest_modules_by_prefix: [
Hugs.TestMod,
Hugs
]
]
end
# defp elixirc_paths(:test), do: ["lib", "test/support"]
# defp elixirc_paths(_), do: ["lib"]
defp elixirc_paths(_), do: ["lib", "test/support"]
end