-
-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathmix.exs
More file actions
50 lines (44 loc) · 1.14 KB
/
mix.exs
File metadata and controls
50 lines (44 loc) · 1.14 KB
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
44
45
46
47
48
49
50
defmodule Forge.MixProject do
use Mix.Project
Code.require_file("../../mix_includes.exs")
def project do
[
app: :forge,
version: version(),
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
compilers: [:yecc] ++ Mix.compilers(),
dialyzer: Mix.Dialyzer.config()
]
end
def version() do
"../../version.txt" |> File.read!() |> String.trim()
end
def application do
[
extra_applications: [:logger, :sasl, :eex]
]
end
defp elixirc_paths(:test) do
["lib", "test/support"]
end
defp elixirc_paths(_) do
["lib"]
end
defp deps do
[
{:benchee, "~> 1.3", only: :test},
Mix.Credo.dependency(),
Mix.Dialyzer.dependency(),
{:deps_nix, "~> 2.4", only: :dev},
{:gen_lsp, "~> 0.11"},
{:snowflake, "~> 1.0"},
{:sourceror, "~> 1.9"},
{:spitfire, github: "doorgan/spitfire", branch: "doorgan/expert-bugs"},
{:stream_data, "~> 1.1", only: [:test], runtime: false},
{:patch, "~> 0.15", only: [:test], optional: true, runtime: false}
]
end
end