defmodule SGP30.MixProject do use Mix.Project @version "0.2.0" @source_url "https://github.com/jjcarstens/sgp30" def project do [ app: :sgp30, version: @version, elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), description: "Interface with SGP30 gas sensor in Elixir", 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"}, {:telemetry, "~> 0.4"}, {:ex_doc, "~> 0.21", only: :docs} ] 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 package do [ files: [ "CHANGELOG.md", "lib", "LICENSE", "mix.exs", "README.md" ], links: %{ "Github" => @source_url, "Datasheet" => "https://www.mouser.com/datasheet/2/682/Sensirion_Gas_Sensors_SGP30_Datasheet_EN-1148053.pdf" }, licenses: ["Apache-2.0"] ] end end