Packages

Drive MiniDisc recorders over NetMD USB

Current section

Files

Jump to
netmd mix.exs
Raw

mix.exs

defmodule NetMD.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :netmd,
version: @version,
elixir: "~> 1.20",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "NetMD",
description: "Drive MiniDisc recorders over NetMD USB",
docs: docs(),
package: package(),
aliases: aliases(),
dialyzer: dialyzer()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
def docs do
[
main: "readme",
source_url: "https://github.com/lawik/netmd",
source_ref: "v#{@version}",
extras: ["README.md"]
]
end
def package do
[
name: :netmd,
licenses: ["GPL-2.0-only"],
links: %{"GitHub" => "https://github.com/lawik/netmd"}
]
end
def aliases do
[
check: [
"hex.audit",
"compile --warnings-as-errors --force",
"format --check-formatted",
"credo --strict",
"deps.unlock --check-unused",
"spellweaver.check",
"dialyzer"
],
precommit: [
"hex.audit",
"compile --warnings-as-errors --force",
"format",
"credo --strict",
"deps.unlock --unused",
"spellweaver.check",
"dialyzer",
"test"
]
]
end
def cli do
[
preferred_envs: [precommit: :test]
]
end
def dialyzer do
[
plt_add_apps: [:mix],
ignore_warnings: ".dialyzer_ignore.exs"
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:bodge_usb, "~> 0.1.1"},
{:bodge_usb_gadget, "~> 0.1.0"},
{:nstandard, "~> 0.5", only: [:dev, :test], runtime: false},
{:igniter, "~> 0.6", only: [:dev, :test]},
{:ex_doc, "~> 0.40", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:spellweaver, "~> 0.1.8", only: [:dev, :test], runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end