65 lines
1.6 KiB
Elixir
Raw Normal View History

2019-06-30 23:31:34 +03:00
defmodule YandexTranslate.MixProject do
2019-06-17 23:52:08 +03:00
use Mix.Project
2019-06-30 23:38:43 +03:00
@name "YandexTranslate"
2019-06-30 23:31:34 +03:00
@version "0.3.0"
# @repo_url "https://github.com/negrienko/yandex_translate"
@repo_url "https://gl.negrienko.com/negrienko/yandex_translate"
2019-07-01 00:10:29 +03:00
@homepage_url "https://negrienko.com/all/yandex-translate/"
@author_url "https://negrienko.com/"
2019-06-17 23:52:08 +03:00
@description """
2019-07-01 00:10:29 +03:00
Translate word and phrases using the Yandex Cloud Yandex Translate API. See README.md for information.
2019-06-17 23:52:08 +03:00
"""
def project do
[
app: :yandex_translate,
2019-06-30 23:31:34 +03:00
version: @version,
2019-06-17 23:52:08 +03:00
elixir: "~> 1.8",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
2019-06-30 23:38:43 +03:00
# Docs
name: @name,
2019-07-01 00:10:29 +03:00
description: @description,
2019-06-30 23:38:43 +03:00
source_url: @repo_url,
homepage_url: @homepage_url,
2019-06-30 23:31:34 +03:00
docs: [
logo: "assets/yandex_translate.svg",
2019-06-30 23:38:43 +03:00
main: @name,
2019-06-30 23:31:34 +03:00
source_ref: @version,
source_url: @repo_url
]
2019-06-17 23:52:08 +03:00
]
end
def application do
[extra_applications: applications(Mix.env())]
2019-06-17 23:52:08 +03:00
end
defp applications(:dev), do: applications(:all) ++ [:remix]
defp applications(_all), do: [:logger, :jose]
2019-06-17 23:52:08 +03:00
defp deps do
[
{:joken, "~> 2.1.0"},
# {:jose, "~> 1.9.0"},
2019-06-17 23:52:08 +03:00
{:jason, "~> 1.1.2"},
{:mint, "~> 0.3.0"},
{:castore, "~> 0.1.2"},
2019-06-30 23:31:34 +03:00
{:ex_spec, "~> 2.0.1", only: :test},
{:ex_doc, "~> 0.20.2", only: :dev},
{:remix, "~> 0.0.2", only: :dev}
2019-06-17 23:52:08 +03:00
]
end
defp package do
[
maintainers: ["Danylo Negriienko"],
licenses: ["MIT"],
2019-07-01 00:10:29 +03:00
links: %{"git" => @repo_url, "author" => @author_url, "homepage" => @homepage_url}
2019-06-17 23:52:08 +03:00
]
end
end