forked from coryt/sendgrid_elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
67 lines (58 loc) · 1.5 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 SendGrid.Mixfile do
use Mix.Project
def project do
[app: :sendgrid,
version: "1.5.0",
elixir: "~> 1.4",
package: package(),
compilers: compilers(Mix.env),
description: description(),
source_url: project_url(),
homepage_url: project_url(),
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[
extra_applications: [
:logger
]
]
end
# Use Phoenix compiler depending on environment.
defp compilers(:test), do: [:phoenix] ++ Mix.compilers()
defp compilers(_), do: Mix.compilers()
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:earmark, "~> 1.2", only: :dev},
{:ex_doc, "~> 0.16.2", only: :dev},
{:httpoison, "~> 0.11.0"},
{:poison, "~> 3.1"},
{:phoenix, "~> 1.3.0-rc", only: :test},
{:phoenix_html, "~> 2.9", only: :test}
]
end
defp description do
"""
A wrapper for SendGrid's API to create composable emails.
"""
end
defp project_url do
"""
https://github.com/alexgaribay/sendgrid_elixir
"""
end
defp package do
[
files: ["lib", "mix.exs", "LICENSE", "README.md"],
maintainers: ["Alex Garibay"],
licenses: ["MIT"],
links: %{"GitHub" => project_url()}
]
end
end