Current section
Files
Jump to
Current section
Files
toml_elixir
mix.exs
mix.exs
defmodule TomlElixir.Mixfile do
use Mix.Project
def project do
[
app: :toml_elixir,
version: "3.0.0",
elixir: ">= 1.18.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description(),
cli: cli(),
elixirc_paths: elixirc_paths(Mix.env()),
# Docs
name: "Toml Elixir",
source_url: "https://github.com/nikolauska/toml_elixir",
homepage_url: "http://github.com/nikolauska/toml_elixir",
docs: [
main: "readme",
extras: ["README.md", "LICENSE.md"]
],
# Test coverage
test_coverage: [tool: ExCoveralls],
aliases: [
tidewave: "run --no-halt -e 'Agent.start(fn -> Bandit.start_link(plug: Tidewave, port: 4000) end)'"
]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Configuration for the OTP application
# Type "mix help compile.app" for more information
def application do
[]
end
defp package do
[
files: ["mix.exs", "lib", "README.md", "LICENSE.md"],
maintainers: ["Niko Lehtovirta"],
licenses: ["MIT"],
links: %{
"Github" => "https://github.com/nikolauska/toml_elixir"
}
]
end
defp description do
"""
TOML parser for elixir
"""
end
# Type "mix help deps" for more examples and options
defp deps do
[
{:ex_doc, "~> 0.39", only: :dev, runtime: false},
{:excoveralls, "~> 0.18", only: [:dev, :test], runtime: false},
{:styler, "~> 1.10", only: [:dev, :test], runtime: false},
{:tidewave, "~> 0.4", only: :dev},
{:bandit, "~> 1.0", only: :dev}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end