defmodule Breadboard.MixProject do use Mix.Project @version "0.0.3" @github_source_url "https://github.com/henrythebuilder/breadboard" @homepage_url @github_source_url def project do [ app: :breadboard, version: @version, elixir: "~> 1.9", start_permanent: Mix.env() == :prod, description: description(), package: package(), source_url: @github_source_url, #homepage_url: @homepage_url, deps: deps(), docs: docs(), aliases: [docs: ["docs", ©_extra/1]], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test ], test_coverage: [tool: ExCoveralls], ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {Breadboard.Application, []} ] end def description() do "An helper library to 'breadboarding' with Elixir with a single-board computer using `Elixir Circuits`" end def package() do %{ licenses: ["Apache 2.0 (Check NOTICE and LICENSE project files for details)"], maintainers: ["Enrico Rivarola "], files: ["lib", "mix.exs", "NOTICE", "LICENSE", "CHANGELOG.md", "README.md", ".formatter.exs"], links: %{"GitHub" => @github_source_url}, } end # Run "mix help deps" to learn about dependencies. defp deps do [ {:circuits_gpio, "~> 0.4"}, {:ex_doc, "~> 0.21.0", only: :docs, runtime: false}, {:excoveralls, "~> 0.12", only: [:test]}, ] end defp docs() do [ main: "readme", extras: ["README.md", "CHANGELOG.md"], source_ref: "v#{@version}", source_url: @github_source_url ] end defp copy_extra(_) do File.cp("LICENSE", "doc/LICENSE") File.cp("NOTICE", "doc/NOTICE") end end # SPDX-License-Identifier: Apache-2.0