36 lines
841 B
Elixir
36 lines
841 B
Elixir
defmodule ChatServer.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :chat_server,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.14",
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
test_coverage: [tool: ExUnit.Coverage],
|
|
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test]
|
|
]
|
|
end
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
def application do
|
|
result = [extra_applications: [:logger]]
|
|
|
|
result ++
|
|
if Mix.env() == :test do
|
|
[]
|
|
else
|
|
[mod: {ChatServer.Application, []}]
|
|
end
|
|
end
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
defp deps do
|
|
[
|
|
# {:dep_from_hexpm, "~> 0.3.0"},
|
|
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
|
|
]
|
|
end
|
|
end
|