-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
53 lines (47 loc) · 1.3 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
defmodule Lunar.MixProject do
use Mix.Project
def project do
[
app: :lunar,
name: "Lunar",
description: "A Lua runtime for Elixir built on Luerl",
deps: deps(),
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
version: "1.0.2",
test_coverage: [tool: ExCoveralls],
package: package()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support", "priv/scripts"]
defp elixirc_paths(:dev), do: ["lib", "priv/scripts"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:luerl, "~> 1.1"},
{:nanoid, "~> 2.1.0"},
{:telemetry, ">= 1.0.0"},
# Dev & Test dependencies
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.28", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.17.1", only: :test}
]
end
defp package do
[
files: ~w(lib mix.exs .formatter.exs README.md CHANGELOG.md),
licenses: ["Apache-2.0"],
links: %{
Changelog: "https://github.com/stordco/lunar/releases",
GitHub: "https://github.com/stordco/lunar"
}
]
end
end