-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
43 lines (39 loc) · 1.08 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
defmodule ElixirScript.MixProject do
use Mix.Project
def project do
[
app: :elixir_script,
version: "0.0.0",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
escript: escript(),
deps: deps(),
dialyzer: [
plt_add_apps: [:mix],
plt_core_path: "priv/plts/core.plt",
plt_local_path: "priv/plts/project.plt"
],
preferred_cli_env: ["test.watch": :test]
]
end
def escript do
[
main_module: ElixirScript.CommandLine
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:bypass, "~> 2.1", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:jason, "~> 1.4"},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
{:mox, "~> 1.0", only: :test},
{:temp, "~> 0.4", only: :test},
{:tentacat, "~> 2.0"}
]
end
defp elixirc_paths(:test), do: ["test/fixtures"] ++ elixirc_paths(:prod)
defp elixirc_paths(_), do: ["lib"]
end