45 lines
1014 B
Elixir
45 lines
1014 B
Elixir
|
defmodule Translator.MixProject do
|
||
|
use Mix.Project
|
||
|
|
||
|
def project do
|
||
|
[
|
||
|
app: :translator,
|
||
|
version: "0.1.0",
|
||
|
elixir: "~> 1.10",
|
||
|
start_permanent: Mix.env() == :prod,
|
||
|
deps: deps()
|
||
|
]
|
||
|
end
|
||
|
|
||
|
# Run "mix help compile.app" to learn about applications.
|
||
|
def application do
|
||
|
[
|
||
|
mod: {Translator.Application, []},
|
||
|
extra_applications: applications(Mix.env())
|
||
|
]
|
||
|
end
|
||
|
|
||
|
defp applications(:dev), do: applications(:all) ++ [:remix]
|
||
|
defp applications(_all), do: [:logger]
|
||
|
|
||
|
# Run "mix help deps" to learn about dependencies.
|
||
|
defp deps do
|
||
|
[
|
||
|
# Translators
|
||
|
{:yandex_translate, "~> 0.4.0"},
|
||
|
|
||
|
# Parsers/generators
|
||
|
{:jason, "~> 1.2.0"},
|
||
|
{:yaml_elixir, "~> 2.4.0"},
|
||
|
|
||
|
# File system monitoring
|
||
|
{:file_system, "~> 0.2.8"},
|
||
|
|
||
|
# Remix for autorestart
|
||
|
{:ex_doc, "~> 0.21.3", only: :dev, runtime: false},
|
||
|
{:credo, "~> 1.4.0-rc.1", only: :dev, runtime: false},
|
||
|
{:remix, "~> 0.0.2", only: :dev}
|
||
|
]
|
||
|
end
|
||
|
end
|