-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
80 lines (74 loc) · 1.86 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
71
72
73
74
75
76
77
78
79
80
defmodule ExGtin.Mixfile do
@moduledoc """
ExGtin `mix.exs`
"""
use Mix.Project
def project do
[
app: :ex_gtin,
version: "1.1.0",
elixir: "~> 1.12",
description: description(),
aliases: aliases(),
package: package(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
coverallspreferred_cli_env: [
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
preferred_cli_env: [
"pull_request_checkout.task": :test
],
# Docs
name: "ExGtin",
source_url: "https://github.com/kickinespresso/ex_gtin",
homepage_url: "https://github.com/kickinespresso/ex_gtin",
docs: [
main: "ExGtin",
extras: ["README.md"]
]
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
# Specify extra applications you'll use from Erlang/Elixir
[extra_applications: [:logger]]
end
defp deps do
[
{:credo, "~> 1.6.1", only: [:dev, :test]},
{:ex_doc, "~> 0.27.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.14.4", only: :test}
]
end
defp package do
[
name: "ex_gtin",
maintainers: ["KickinEspresso"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/kickinespresso/ex_gtin"}
]
end
defp aliases do
[c: "compile",
"pull_request_checkout.task": [
"test",
"credo --strict",
"coveralls"
],
]
end
defp description do
"""
Elixir Global Trade Item Number (GTIN) Validation Library for GS1, UPC-12, and GLN.
Validates GTIN-8, GTIN-12 (UPC-12), GTIN-13 (GLN), GTIN-14 codes.
Universal Price Code (UPC)
"""
end
end