-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmix.exs
85 lines (75 loc) · 2.31 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
80
81
82
83
84
85
defmodule CTE.MixProject do
use Mix.Project
@version "2.0.5"
@url_docs "https://hexdocs.pm/closure_table"
@url_github "https://github.com/florinpatrascu/closure_table"
def project do
[
app: :closure_table,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
description:
"Closure Table for Elixir - a simple solution for storing and manipulating complex hierarchies.",
build_embedded: Mix.env() == :prod,
name: "Closure Table",
start_permanent: Mix.env() == :prod,
docs: [
name: "Closure Table",
logo: "assets/logo.png",
assets: %{"assets" => "assets"},
formatters: ~w(html),
source_ref: "v#{@version}",
source_url: @url_github,
main: "readme",
extras: [
"README.md",
"CHANGELOG.md"
]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto, "~> 3.11.2", optional: true, runtime: false},
{:ecto_sql, "~> 3.11.3", optional: true, runtime: false},
{:postgrex, ">= 0.0.0", optional: true, runtime: false},
# dev/test/benching utilities
{:benchee, ">= 0.0.0", only: :dev},
{:mix_test_watch, "~> 1.2.0", only: [:dev, :test]},
# Linting dependencies
{:credo, "~> 1.7.7", only: [:dev]},
{:dialyxir, "~> 1.4.3", only: [:dev], runtime: false},
# mix eye_drops
{:eye_drops,
github: "florinpatrascu/eye_drops", ref: "1d8c364", only: [:dev, :test], runtime: false},
# Documentation dependencies
# Run me like this: `mix docs`
{:ex_doc, "~> 0.34.2", only: :dev, runtime: false}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
%{
files: ~w(lib examples assets mix.exs LICENSE),
licenses: ["Apache-2.0"],
maintainers: ["Florin T.PATRASCU", "Greg Rychlewski"],
links: %{
"Docs" => @url_docs,
"Github" => @url_github
}
}
end
end