This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmix.exs
62 lines (53 loc) · 1.51 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
defmodule OT.Mixfile do
use Mix.Project
@version "0.1.0"
@github_url "https://github.com/jclem/ot_ex"
def project do
[app: :ot_ex,
version: @version,
description: description(),
package: package(),
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: [flags: ~w(-Werror_handling
-Wrace_conditions
-Wunderspecs
-Wunmatched_returns)],
# Docs
name: "OT",
homepage_url: @github_url,
source_url: @github_url,
docs: docs()]
end
defp aliases do
[lint: ["credo", "dialyzer --halt-exit-status"]]
end
def application do
# Specify extra applications you'll use from Erlang/Elixir
[]
end
defp deps do
[{:ex_doc, "~> 0.14", only: [:dev]},
{:dialyxir, "~> 0.4", only: [:dev], runtime: false},
{:credo, "~> 0.8", only: [:dev, :test]}]
end
defp description do
"""
OT provides libraries for operational transformation, which is a method of
achieving consistency in a collaborative software system.
"""
end
defp docs do
[source_ref: "v#{@version}",
extras: ["README.md": [filename: "README.md", title: "Readme"],
"LICENSE.md": [filename: "LICENSE.md", title: "License"]]]
end
defp package do
licenses: ["ISC"],
links: %{"GitHub" => @github_url}]
end
end