-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
117 lines (110 loc) · 2.77 KB
/
mix.exs
File metadata and controls
117 lines (110 loc) · 2.77 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
defmodule DprintMarkdownFormatter.MixProject do
use Mix.Project
@version "0.6.0"
@source_url "https://github.com/fahchen/dprint_markdown_formatter"
def project do
[
app: :dprint_markdown_formatter,
version: @version,
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: [plt_add_apps: [:mix]],
package: package(),
docs: docs(),
dprint_markdown_formatter: [
line_width: 80,
text_wrap: "always",
format_module_attributes: true
]
]
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
[
{:rustler_precompiled, "~> 0.8"},
{:rustler, "~> 0.36.0", optional: true},
{:sourceror, "~> 1.0"},
{:typed_structor, "~> 0.5"},
{:mimic, "~> 1.7", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
]
end
defp package do
[
description:
"A fast, configurable markdown formatter for Elixir using Rust's dprint-plugin-markdown",
files: [
"lib",
".formatter.exs",
"mix.exs",
"README.md",
"LICENSE",
"llms.txt",
"native/dprint_markdown_formatter/*.*",
"native/dprint_markdown_formatter/.cargo/",
"native/dprint_markdown_formatter/src/",
"checksum-*.exs"
],
maintainers: ["Phil Chen"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Documentation" => "https://hexdocs.pm/dprint_markdown_formatter"
},
keywords: [
"markdown",
"formatter",
"dprint",
"rust",
"nif",
"documentation",
"moduledoc",
"mix",
"format"
]
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: ["README.md", "llms.txt"],
groups_for_modules: [
Core: [
DprintMarkdownFormatter,
DprintMarkdownFormatter.Config,
DprintMarkdownFormatter.Error
],
Sigil: [
DprintMarkdownFormatter.Sigil
],
Internal: [
DprintMarkdownFormatter.Native,
DprintMarkdownFormatter.Validator
]
]
]
end
defp aliases do
[
check: [
"cmd --cd native/dprint_markdown_formatter cargo fmt",
"cmd --cd native/dprint_markdown_formatter cargo clippy -- -D warnings",
"format",
"credo",
"dialyzer"
]
]
end
end