-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
67 lines (59 loc) · 1.53 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
defmodule Combination.Mixfile do
use Mix.Project
@version "0.0.3"
def project do
[
app: :combination,
version: @version,
elixir: "~> 1.2",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
package: package(),
name: "Combination",
source_url: "https://github.com/seantanly/elixir-combination",
homepage_url: "https://github.com/seantanly/elixir-combination",
description: """
Elixir library computing simple combination and permutation on Enumerables.
""",
docs: docs()
]
end
def application do
[applications: [:logger]]
end
defp deps do
[
{:credo, ">= 0.0.0", only: [:dev, :test]},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev], runtime: false}
]
end
defp package do
[
maintainers: ["Sean Tan Li Yang"],
licenses: ["MIT"],
links: %{github: "https://github.com/seantanly/elixir-combination"},
files: ~w(lib test) ++ ~w(mix.exs CHANGELOG.md LICENSE.md README.md)
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "Combination",
# logo: "path/to/logo.png",
extras: ~w(CHANGELOG.md LICENSE.md README.md)
]
end
defp aliases do
[
check: ["format --check-formatted --dry-run", "credo", "dialyzer"],
"test.prod": ["check", &run_test/1]
]
end
defp run_test(_) do
Mix.env(:test)
Mix.Tasks.Test.run([])
end
end