defmodule Shelly.MixProject do use Mix.Project @version "0.1.0" @source_url "https://github.com/mdon/shelly" def project do [ app: :shelly, version: @version, elixir: "~> 1.15", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package(), docs: docs(), name: "Shelly" ] end def application do [extra_applications: [:logger]] end defp deps do [ {:req, "~> 0.4 or ~> 0.5"}, {:websockex, "~> 0.4"}, {:jason, "~> 1.4"}, {:ex_doc, "~> 0.31", only: :dev, runtime: false} ] end defp description do "Shelly smart-device client for Elixir: cloud APIs (legacy auth-key, v2, " <> "OAuth account access), real-time websocket events, and component-aware " <> "status parsing across Gen1-Gen4 hardware." end defp package do [ licenses: ["MIT"], links: %{ "GitHub" => @source_url, "Shelly API docs" => "https://shelly-api-docs.shelly.cloud" }, maintainers: ["Max Don"] ] end defp docs do [ main: "Shelly", source_url: @source_url, source_ref: "v#{@version}", extras: ["README.md", "CHANGELOG.md"] ] end end