-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
57 lines (51 loc) · 1.29 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
defmodule DatoCMS.Repo.MixProject do
use Mix.Project
@version "0.9.0"
@git_origin "https://github.com/leanpanda-com/elixir_datocms_repo"
def project do
[
app: :datocms_repo,
version: @version,
elixir: "~> 1.9",
name: "DatoCMS Repo",
description: "DatoCMS Repo wrapping the REST client",
package: package(),
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [
extras: ["README.md"],
homepage_url: @git_origin,
main: "DatoCMS.Repo",
source_ref: "v#{@version}",
source_url: @git_origin
]
]
end
def application do
[
extra_applications: [:logger],
mod: {DatoCMS.Repo.Loader, []}
]
end
defp deps do
[
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:datocms_rest_client, "~> 0.6.0 and >= 0.6.2"},
{:fermo_slugger, "~> 0.8.4"},
{:memoize, "~> 1.3"}
]
end
defp package do
%{
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/leanpanda-com/elixir_datocms_repo"
},
maintainers: ["Joe Yates"]
}
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end