Packages

BlinkOMeter is a project shell for an RPI0W prividing an analog panel meter and an RGB light as outputs. This package facilitates accessing those features.

Current section

Files

Jump to
Raw

mix.exs

defmodule BlinkOMeter.MixProject do
use Mix.Project
@all_targets [:rpi0, :rpi3]
def project do
[
app: :blink_o_meter,
version: "1.0.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
package: package(),
description: description(),
docs: [
main: "BlinkOMeter",
extras: ["README.md"]
],
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {BlinkOMeter.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:pigpiox, "~> 0.1", targets: @all_targets},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:nerves_neopixel, "~> 0.4", targets: @all_targets},
{:mix_test_watch, "~> 0.8", only: :dev, runtime: false}
]
end
defp description() do
"BlinkOMeter is a project shell for an RPI0W prividing an analog panel meter and an RGB light as outputs. This package facilitates accessing those features."
end
defp package() do
[
files: ~w(lib .formatter.exs mix.exs README* LICENSE*),
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/nerves-build/BlinkOMeter"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end