Packages
home_elixir
0.1.0
An embedded Elixir DSL for declaring Home Assistant entities and automations, compiled at build time into the YAML files Home Assistant expects.
Current section
Files
Jump to
Current section
Files
home_elixir
mix.exs
mix.exs
defmodule HomeElixir.MixProject do
use Mix.Project
def project do
[
app: :home_elixir,
version: "0.1.0",
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
test_coverage: [summary: [threshold: 70]],
deps: deps(),
package: package(),
description: description(),
name: "HomeElixir",
source_url: "https://github.com/underBalance/DSL",
docs: docs()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
{:corsa, "~> 0.1.2"},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:home_assistant_api_client, "~> 0.1.0"}
]
end
defp description() do
"An embedded Elixir DSL for declaring Home Assistant entities and automations, " <>
"compiled at build time into the YAML files Home Assistant expects."
end
defp docs() do
[
main: "readme",
extras: [
"README.md",
"GUIDE.md": [title: "HomeElixir DSL"]
]
]
end
defp package() do
[
name: "home_elixir",
licenses: ["MIT"],
files: ~w(lib mix.exs README.md GUIDE.md LICENSE),
links: %{
"GitHub" => "https://github.com/underBalance/DSL",
"Home Assistant" => "https://www.home-assistant.io/"
}
]
end
end