-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
68 lines (61 loc) · 1.78 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
defmodule AshUlid.MixProject do
use Mix.Project
@name :ash_ulid
@version "1.0.0"
@description "ULID type for Ash framework"
@github_url "https://github.com/vonagam/ash_ulid"
def project() do
[
app: @name,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
docs: docs(),
aliases: aliases(),
]
end
def application() do
[extra_applications: [:logger]]
end
defp package() do
[
maintainers: ["Dmitry Maganov"],
description: @description,
licenses: ["MIT"],
links: %{Github: @github_url},
files: ~w(mix.exs lib .formatter.exs LICENSE.md README.md),
]
end
defp deps() do
[
{:ash, "~> 3.0"},
{:ex_doc, "~> 0.32", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: :dev, runtime: false},
{:benchfella, "~> 0.3.5", only: :dev, runtime: false},
{:freedom_formatter, "~> 2.1", only: [:dev, :test], runtime: false},
]
end
def docs() do
[
homepage_url: @github_url,
source_url: @github_url,
source_ref: "v#{@version}",
extras: [
"README.md": [title: "Guide"],
"documentation/dsls/DSL:-AshUlid.Resource.md": [title: "DSL: AshUlid.Resource"],
"LICENSE.md": [title: "License"],
],
main: "readme",
]
end
defp aliases() do
[
docs: ["spark.cheat_sheets", "docs", "spark.replace_doc_links", "spark.cheat_sheets_in_search"],
"spark.cheat_sheets": "spark.cheat_sheets --extensions AshUlid.Resource",
"spark.cheat_sheets_in_search": "spark.cheat_sheets_in_search --extensions AshUlid.Resource",
"spark.formatter": ["spark.formatter --extensions AshUlid.Resource", "format .formatter.exs"],
]
end
end