-
Notifications
You must be signed in to change notification settings - Fork 14
/
mix.exs
54 lines (48 loc) · 1.09 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
defmodule Snowflake.Mixfile do
use Mix.Project
@version "1.0.4"
@url "https://github.com/blitzstudios/snowflake"
@maintainers ["Weixi Yen"]
def project do
[
name: "Snowflake",
app: :snowflake,
version: @version,
source_url: @url,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
maintainers: @maintainers,
description: "Elixir Snowflake ID Generator",
elixir: "~> 1.3",
package: package(),
homepage_url: @url,
docs: docs(),
deps: deps()
]
end
def application do
[applications: [],
mod: {Snowflake, []}]
end
defp deps do
[
{:dialyxir, "~> 0.4", only: :dev, runtime: false},
{:benchee, "~> 0.6", only: :dev},
{:ex_doc, "~> 0.14", only: :dev}
]
end
def docs do
[
extras: ["README.md", "CHANGELOG.md"],
source_ref: "v#{@version}"
]
end
defp package do
[
maintainers: @maintainers,
licenses: ["MIT"],
links: %{github: @url},
files: ~w(lib) ++ ~w(CHANGELOG.md LICENSE mix.exs README.md)
]
end
end