Packages

Implementation for Pimoroni Scroll Hat boards and IS31FL3731 LED driver

Current section

Files

Jump to
scroll_hat mix.exs
Raw

mix.exs

defmodule ScrollHat.MixProject do
use Mix.Project
@version "0.2.0"
@app :scroll_hat
@source_url "https://github.com/jjcarstens/scroll_hat"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Implementation for Pimoroni Scroll Hat boards and IS31FL3731 LED driver",
dialyzer: dialyzer(),
docs: docs(),
package: package(),
preferred_cli_env: %{
docs: :docs,
"hex.build": :docs,
"hex.publish": :docs
}
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:circuits_i2c, "~> 0.3.9"},
{:circuits_gpio, "~> 0.4.8"},
# Dev dependencies
{:dialyxir, "~> 1.1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.22", only: :docs, runtime: false}
]
end
defp docs do
[
extras: ["README.md", "CHANGELOG.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp dialyzer() do
[
flags: [:race_conditions, :unmatched_returns, :error_handling, :underspecs]
]
end
defp package do
%{
files: [
"CHANGELOG.md",
"lib",
"LICENSE",
"mix.exs",
"README.md"
],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
}
end
end