-
Notifications
You must be signed in to change notification settings - Fork 196
/
mix.exs
61 lines (54 loc) · 1.82 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
defmodule ElixirLS.LanguageServer.MixProject do
use Mix.Project
@version __DIR__
|> Path.join("../../VERSION")
|> File.read!()
|> String.trim()
@dep_versions __DIR__
|> Path.join("../../dep_versions.exs")
|> Code.eval_file()
|> elem(0)
def project do
[
app: :language_server,
version: @version,
elixir: ">= 1.13.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: false,
start_permanent: true,
build_per_environment: false,
consolidate_protocols: Mix.env() != :test,
deps: deps()
]
end
def application do
[mod: {ElixirLS.LanguageServer.Application, []}, extra_applications: [:logger, :eex]]
end
defp deps do
[
{:elixir_ls_utils, in_umbrella: true},
{:elixir_sense, github: "elixir-lsp/elixir_sense", ref: @dep_versions[:elixir_sense]},
{:erl2ex_vendored, github: "elixir-lsp/erl2ex", ref: @dep_versions[:erl2ex_vendored]},
{:dialyxir_vendored,
github: "elixir-lsp/dialyxir", ref: @dep_versions[:dialyxir_vendored], runtime: false},
{:jason_v, github: "elixir-lsp/jason", ref: @dep_versions[:jason_v]},
{:stream_data, "~> 0.5", only: [:dev, :test], runtime: false},
{:path_glob_vendored,
github: "elixir-lsp/path_glob", ref: @dep_versions[:path_glob_vendored]},
{:patch, "~> 0.12.0", only: [:dev, :test], runtime: false},
{:benchee, "~> 1.0", only: :dev, runtime: false}
]
end
defp aliases do
[
test: "test --no-start"
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end