-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
88 lines (79 loc) · 2.07 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
81
82
83
84
85
86
87
88
defmodule Pockets.MixProject do
use Mix.Project
@source_url "https://github.com/fireproofsocks/pockets"
@version "1.4.0"
def project do
[
app: :pockets,
name: "Pockets",
description: description(),
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test],
docs: [
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
logo: "assets/logo.png",
extras: ["README.md", "CHANGELOG.md"]
]
]
end
defp description do
"""
Pockets is an Elixir wrapper around Erlang :ets and :dets, a disk-based
term storage. It offers a simple key/value store with a familiar interface.
This is a simple alternative to :mnesia or Redis.
"""
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Everett Griffiths"],
licenses: ["Apache-2.0"],
logo: "assets/logo.png",
links: links(),
files: [
"lib",
"assets/logo.png",
"mix.exs",
"README*",
"CHANGELOG*",
"LICENSE*"
]
]
end
def links do
%{
"GitHub" => @source_url,
"Readme" => "#{@source_url}/blob/v#{@version}/README.md",
"Changelog" => "#{@source_url}/blob/v#{@version}/CHANGELOG.md"
}
end
def application do
[
mod: {Pockets.Application, []},
extra_applications: [:logger]
]
end
defp aliases do
[
lint: ["format --check-formatted", "credo --strict"]
]
end
defp deps do
[
{:credo, "~> 1.6.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.2.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.28.5", only: :dev, runtime: false},
{:excoveralls, "~> 0.14.6", only: [:dev, :test], runtime: false}
]
end
end