-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmix.exs
49 lines (45 loc) · 1.24 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
defmodule EctoPhoneNumber.Mixfile do
use Mix.Project
@name "EctoPhoneNumber"
@description "Phone number type with validation and formatting for Ecto"
@github_url "https://github.com/surgeventures/ecto-phone-number"
def project do
[
app: :ecto_phone_number,
version: "0.4.4",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
deps: deps(),
name: @name,
description: @description,
package: [
maintainers: ["Karol Słuszniak"],
licenses: ["MIT"],
links: %{
"GitHub" => @github_url
}
],
docs: [
main: "readme",
extras: ["README.md"],
source_url: @github_url
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:credo, "~> 1.6", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.24.2", only: :dev, runtime: false},
{:ecto, "~> 2.0 or ~> 3.0"},
{:ex_phone_number, "~> 0.4"}
]
end
end