forked from razorpay/ifsc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
77 lines (70 loc) · 1.57 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
defmodule IFSC.Mixfile do
use Mix.Project
def project do
[
app: :ifsc,
version: "1.5.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
aliases: aliases(),
source_url: "https://github.com/razorpay/ifsc",
homepage_url: "https://ifsc.razorpay.com/",
elixirc_paths: ["src/elixir"],
test_paths: ["tests/elixir"],
]
end
def application do
[
extra_applications: [:logger],
]
end
defp description do
"A simple package by @razorpay to help you validate your IFSC codes. "
<> "IFSC codes are bank codes within India"
end
defp package do
[
maintainers: [
"Nihal Gonsalves <nihal@gonsalves.com>",
"Abhay Rana <contact@razorpay.com>",
],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/razorpay/ifsc",
"Website" => "https://ifsc.razorpay.com/",
},
files: files(),
]
end
defp files do
[
"src/elixir/config/**",
"src/elixir/lib/**",
"src/elixir/*.md",
"tests/elixir/**",
"tests/*.json",
"priv/*",
"src/*.json",
"*.md",
"mix.exs",
]
end
defp deps do
[
{:poison, "~> 4.0"},
{:httpoison, "~> 1.2"},
{:memoize, "~> 1.2"},
{:exvcr, "~> 0.10", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev},
]
end
defp aliases do
[
test: ["ifsc.copy_json", "test"],
"hex.publish": ["ifsc.copy_json", "hex.publish"],
]
end
end