forked from elixir-tools/next-ls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
79 lines (72 loc) · 2.2 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
defmodule NextLS.MixProject do
use Mix.Project
@version "0.7.1" # x-release-please-version
def project do
[
app: :next_ls,
description: "The language server for Elixir that just works",
version: @version,
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
releases: releases(),
package: package(),
deps: deps(),
docs: [
# The main page in the docs
main: "README",
extras: ["README.md"]
],
dialyzer: [ignore_warnings: ".dialyzer_ignore.exs"]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :crypto],
mod: {NextLS.Application, []}
]
end
def releases do
[
next_ls: [
steps: [:assemble, &Burrito.wrap/1],
burrito: [
targets: [
"#{@version}-darwin_arm64": [os: :darwin, cpu: :aarch64],
"#{@version}-darwin_amd64": [os: :darwin, cpu: :x86_64],
"#{@version}-linux_arm64": [os: :linux, cpu: :aarch64, libc: :gnu],
"#{@version}-linux_amd64": [os: :linux, cpu: :x86_64, libc: :gnu],
"#{@version}-linux_arm64_musl": [os: :linux, cpu: :aarch64, libc: :musl],
"#{@version}-linux_amd64_musl": [os: :linux, cpu: :x86_64, libc: :musl],
"#{@version}-windows_amd64": [os: :windows, cpu: :x86_64]
]
]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:gen_lsp, "~> 0.5"},
{:esqlite, "~> 0.8.6"},
{:styler, "~> 0.8", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev},
{:burrito, github: "burrito-elixir/burrito"},
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
defp package do
[
maintainers: ["Mitchell Hanberg"],
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/elixir-tools/next-ls",
Sponsor: "https://github.com/sponsors/mhanberg"
},
files: ~w(lib LICENSE mix.exs priv README.md .formatter.exs)
]
end
end