2019-06-30 23:31:34 +03:00

59 lines
1.4 KiB
Elixir
Executable File

defmodule YandexTranslate.MixProject do
use Mix.Project
@version "0.3.0"
# @repo_url "https://github.com/negrienko/yandex_translate"
@repo_url "https://gl.negrienko.com/negrienko/yandex_translate"
@description """
Translate word and phrases using the Yandex Translate API. See README.md for information.
"""
def project do
[
app: :yandex_translate,
version: @version,
elixir: "~> 1.8",
description: @description,
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
# source_url: @repo_url,
docs: [
logo: "assets/yandex_translate.svg",
main: "YandexTranslate",
source_ref: @version,
source_url: @repo_url
]
]
end
def application do
[extra_applications: applications(Mix.env())]
end
defp applications(:dev), do: applications(:all) ++ [:remix]
defp applications(_all), do: [:logger, :jose]
defp deps do
[
{:joken, "~> 2.1.0"},
# {:jose, "~> 1.9.0"},
{:jason, "~> 1.1.2"},
{:mint, "~> 0.3.0"},
{:castore, "~> 0.1.2"},
{:ex_spec, "~> 2.0.1", only: :test},
{:ex_doc, "~> 0.20.2", only: :dev},
{:remix, "~> 0.0.2", only: :dev}
]
end
defp package do
[
maintainers: ["Danylo Negriienko"],
licenses: ["MIT"],
links: %{"git" => @repo_url}
]
end
end