forked from deltadoc/text_delta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
70 lines (62 loc) · 1.68 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
defmodule TextDelta.Mixfile do
use Mix.Project
@version "1.4.0"
@github_url "https://github.com/deltadoc/text_delta"
def project do
[
app: :text_delta,
version: @version,
description: description(),
package: package(),
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: [flags: ~w(-Werror_handling
-Wrace_conditions
-Wunderspecs
-Wunmatched_returns)],
homepage_url: @github_url,
source_url: @github_url,
docs: docs()
]
end
def application, do: []
defp aliases do
[
lint: ["credo --strict", "dialyzer --halt-exit-status"]
]
end
defp description do
"""
Elixir counter-part for the Quill.js Delta library. It provides a baseline
for Operational Transformation of rich text.
"""
end
defp package do
[
maintainers: ["Konstantin Kudryashov <ever.zet@gmail.com>"],
licenses: ["MIT"],
links: %{"GitHub" => @github_url}
]
end
defp docs do
[
source_ref: "v#{@version}",
extras: [
"README.md": [filename: "README.md", title: "Readme"],
"CHANGELOG.md": [filename: "CHANGELOG.md", title: "Changelog"],
"LICENSE.md": [filename: "LICENSE.md", title: "License"]
]
]
end
defp deps do
[
{:ex_doc, "~> 0.15", only: [:dev], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:credo, "~> 0.7", only: [:dev, :test], runtime: false},
{:eqc_ex, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
end