Packages

Generate short, unique, random-looking codes on demand.

Current section

Files

Jump to
coder_ring mix.exs
Raw

mix.exs

defmodule CoderRing.MixProject do
use Mix.Project
def project do
[
app: :coder_ring,
version: "0.2.1",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
deps: deps(),
description: description(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
ci: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
dialyzer: :test
],
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix, :ex_unit, :expletive],
ignore: ".dialyzer_ignore.exs"
],
# Docs
name: "CoderRing",
source_url: "https://github.com/instinctscience/coder_ring",
homepage_url: "https://github.com/instinctscience/coder_ring",
docs: [
main: "CoderRing",
extras: ["README.md", "docs/global-registry-method.md"]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ecto_sql, "~> 3.4"},
{:excoveralls, "~> 0.14.4", only: :test},
{:expletive, "~> 0.1.0", optional: true},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:postgrex, "~> 0.15", only: [:test]}
]
end
defp aliases do
[
ci: ["lint", "coveralls", "dialyzer"],
lint: [
"compile --warnings-as-errors",
"format --check-formatted",
"credo"
],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"]
]
end
defp description do
"Generate short, unique, random-looking codes on demand."
end
defp package do
[
files: ~w(lib priv .formatter.exs mix.exs README.md LICENSE
CHANGELOG.md),
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/instinctscience/coder_ring"}
]
end
end