wafer/mix.exs
James Harton 4b27f5441f Code gardening.
* Rename and extract a bunch of modules into their own files to make it easier to navigate the repository.
* Remove fake versions of `ElixirALE` and `Circuits` from `test/support`.
* Create wrapper modules for `ElixirALE` and `Circuits` modules using `defdelegate` instead.
* Use Elixir 1.10's new `@compile {:no_warn_undefined ...}` directive to inhibit compiler warnings for our optional dependencies.
2020-01-08 10:18:38 +13:00

55 lines
1.3 KiB
Elixir

defmodule Wafer.MixProject do
use Mix.Project
@moduledoc false
@description """
Wafer is an Elixir library to make writing drivers for i2c and SPI connected
peripherals and interacting with GPIO pins easier.
"""
@version "0.1.0"
def project do
[
app: :wafer,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
package: package(),
description: @description,
deps: deps(),
consolidate_protocols: Mix.env() != :test
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Wafer.Application, []}
]
end
def package do
[
maintainers: ["James Harton <james@automat.nz>"],
licenses: ["Hippocratic"],
links: %{
"Source" => "https://gitlab.com/jimsy/wafer"
}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
{:earmark, ">= 0.0.0", only: [:dev, :test]},
{:mimic, "~> 1.1", only: :test},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:elixir_ale, "~> 1.2", optional: true},
{:circuits_i2c, "~> 0.3", optional: true},
{:circuits_gpio, "~> 0.4", optional: true},
{:circuits_spi, "~> 0.1", optional: true}
]
end
end