Packages
telegex
1.7.0
1.9.0-rc.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.3-dev
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
1.0.0-rc.10
1.0.0-rc.9
1.0.0-rc.8
1.0.0-rc.7
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
1.0.0-rc.0
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.1.0-rc.11
0.1.0-rc.10
0.1.0-rc.9
0.1.0-rc.8
0.1.0-rc.7
0.1.0-rc.6
0.1.0-rc.5
0.1.0-rc.4
0.1.0-rc.3
0.1.0-rc.2
0.1.0-rc.1
0.0.4
0.0.3
0.0.2
0.0.1
A Telegram bot framework, with its client-side based on data and code generation, boasts unparalleled adaptation speed and correctness for new versions.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Telegex.MixProject do
use Mix.Project
@version "1.7.0"
@description "A Telegram bot framework, with its client-side based on data and code generation, boasts unparalleled adaptation speed and correctness for new versions."
def project do
[
app: :telegex,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
dialyzer: dialyzer(),
aliases: aliases(),
deps: deps(),
description: @description,
package: package(),
name: "Telegex",
source_url: "https://github.com/telegex/telegex",
docs: [
main: "readme",
extras: ["README.md"]
]
]
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/telegex/telegex"}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger] ++ extra_applications(),
mod: {Telegex.Application, []}
]
end
def extra_applications do
if Mix.env() in [:dev, :test] do
[:httpoison, :finch, :multipart, :plug, :plug_cowboy, :bandit, :remote_ip]
else
[]
end
end
defp dialyzer do
[
plt_add_apps: [:iex, :mix]
]
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"}
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.32", only: :dev, runtime: false},
{:httpoison, "~> 2.2", optional: true, only: [:dev, :test]},
{:finch, "~> 0.18.0", optional: true, only: [:dev, :test]},
{:multipart, "~> 0.4.0", optional: true, only: [:dev, :test]},
{:plug, "~> 1.15", optional: true, only: [:dev, :test]},
{:plug_cowboy, "~> 2.7", optional: true, only: [:dev, :test]},
{:remote_ip, "~> 1.1", optional: true, only: [:dev, :test]},
{:bandit, "~> 1.5", optional: true, only: [:dev, :test]},
{:floki, "~> 0.36.2", only: [:dev, :test]},
{:typed_struct, "~> 0.3.0"},
{:jason, "~> 1.4"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"gen.all": ["gen.doc_json", "gen.code", "format"]
]
end
end