Packages

Tgex is a library for building Telegram bots in Elixir.

Current section

Files

Jump to
tgex mix.exs
Raw

mix.exs

defmodule Tgex.MixProject do
use Mix.Project
def project do
[
app: :tgex,
version: "0.0.1",
elixir: "~> 1.18",
description: "Tgex is a library for building Telegram bots in Elixir.",
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
preferred_cli_env: [
coveralls: :test,
"coveralls.github": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
docs: :dev
],
test_coverage: [tool: ExCoveralls],
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
docs: docs(),
dialyzer: [
plt_local_path: "_build/plts"
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/bondiano/telega"}
]
end
defp deps do
[
{:req, "~> 0.5.8"},
{:excoveralls, "~> 0.18", only: :test},
# documentation
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
# dialyzer
{:credo, "~> 1.0", only: [:dev], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
source_url: "https://github.com/bondiano/telega",
extras: ["README.md"]
]
end
end