2022-12-19 03:37:10 -05:00
|
|
|
defmodule Chessh.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :chessh,
|
|
|
|
version: "0.1.0",
|
|
|
|
elixir: "~> 1.14",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2022-12-19 18:27:34 -05:00
|
|
|
deps: deps(),
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
aliases: aliases()
|
2022-12-19 03:37:10 -05:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
def application do
|
|
|
|
[
|
2022-12-19 04:39:40 -05:00
|
|
|
mod: {Chessh.Application, []},
|
2023-01-19 16:04:10 -05:00
|
|
|
extra_applications: [:logger, :crypto, :syn, :ssh, :plug_cowboy, :inets, :ssl]
|
2022-12-19 03:37:10 -05:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2022-12-19 18:27:34 -05:00
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
|
2022-12-19 03:37:10 -05:00
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
2023-01-11 11:54:05 -05:00
|
|
|
{:binbo, "~> 4.0.2"},
|
2022-12-19 03:37:10 -05:00
|
|
|
{:ecto, "~> 3.9"},
|
|
|
|
{:ecto_sql, "~> 3.9"},
|
|
|
|
{:postgrex, "~> 0.16.5"},
|
2022-12-28 01:50:22 -05:00
|
|
|
{:bcrypt_elixir, "~> 3.0"},
|
2022-12-31 18:32:56 -05:00
|
|
|
{:hammer, "~> 6.1"},
|
2023-01-04 02:03:38 -05:00
|
|
|
{:syn, "~> 3.3"},
|
2023-01-19 16:04:10 -05:00
|
|
|
{:jason, "~> 1.3"},
|
|
|
|
{:plug_cowboy, "~> 2.2"},
|
|
|
|
{:joken, "~> 2.5"}
|
2022-12-19 03:37:10 -05:00
|
|
|
]
|
|
|
|
end
|
2022-12-19 18:27:34 -05:00
|
|
|
|
|
|
|
defp aliases do
|
|
|
|
[
|
2022-12-31 04:29:38 -05:00
|
|
|
test: ["ecto.create --quiet", "ecto.migrate", "test --seed 0"]
|
2022-12-19 18:27:34 -05:00
|
|
|
]
|
|
|
|
end
|
2022-12-19 03:37:10 -05:00
|
|
|
end
|