-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
72 lines (66 loc) · 1.66 KB
/
mix.exs
File metadata and controls
72 lines (66 loc) · 1.66 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
defmodule Ultraviolet.MixProject do
use Mix.Project
@repo_url "https://github.com/dcrck/ultraviolet"
@version "0.1.1"
def project do
[
app: :ultraviolet,
version: @version,
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
# tests
test_coverage: [tool: ExCoveralls],
# Hex
package: package(),
description: "A color manipulation library designed to work like chroma-js",
# Docs
name: "Ultraviolet",
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: []
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
# required for floating point math in LAB / LCH space
{:decimal, "~> 2.0"},
# only required to parse colorbrewer.json file
{:jason, "~> 1.4", optional: true, runtime: false},
# test coverage
{:excoveralls, "~> 0.18", only: :test},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
defp package do
[
maintainers: "Derek Meer",
licenses: ["MIT"],
links: %{
"Codeberg" => "https://codeberg.org/meerific/uv",
"GitHub" => @repo_url
}
]
end
defp docs do
[
main: "Ultraviolet",
source_ref: "v#{@version}",
source_url: @repo_url,
homepage_url: "https://codeberg.org/meerific/uv",
extras: [
"README.md": [title: "README"],
LICENSE: [title: "License"]
],
nest_modules_by_prefix: [
Ultraviolet.Color
]
]
end
end