49 lines
1.1 KiB
Elixir
Executable File

defmodule YandexTranslate.Mixfile do
use Mix.Project
@description """
Translate word and phrases using the Yandex Translate API. See README.md for information.
"""
def project do
[
app: :yandex_translate,
version: "0.1.0",
elixir: "~> 1.8",
description: @description,
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
source_url: "https://gl.negrienko.com/negrienko/yandex_translate"
]
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_doc, "~> 0.20.2", only: :dev},
{:remix, "~> 0.0.2", only: :dev}
]
end
defp package do
[
maintainers: ["Danylo Negriienko"],
licenses: ["MIT"],
links: %{"git" => "https://gl.negrienko.com/negrienko/yandex_translate"}
]
end
end