-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
85 lines (79 loc) · 1.97 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
78
79
80
81
82
83
84
85
defmodule Resty.MixProject do
use Mix.Project
def project do
[
app: :resty,
version: "1.0.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
description: "Like ActiveResource but for Elixir",
package: package(),
# Docs
name: "Resty",
source_url: "https://github.com/paulhenri-l/resty",
homepage_url: "https://github.com/paulhenri-l/resty",
docs: [
main: "readme",
extras: ["README.md"],
groups_for_modules: [
Config: [
Resty
],
"The Basics": [
Resty.Repo,
Resty.Resource,
Resty.Resource.Base
],
Associations: [
Resty.Associations,
Resty.Associations.NotLoaded,
Resty.Associations.LoadError
],
Auth: [
Resty.Auth,
Resty.Auth.Basic,
Resty.Auth.Bearer,
Resty.Auth.Null
],
Serializer: [
Resty.Serializer,
Resty.Serializer.Json
],
Connection: [
Resty.Connection,
Resty.Connection.HTTPoison,
Resty.Request
]
]
]
]
end
def application do
[
extra_applications: [:logger]
]
end
def package do
[
licenses: ["MIT"],
maintainers: ["paulhenri-l"],
links: %{github: "https://github.com/paulhenri-l/resty"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/fakes"]
defp elixirc_paths(:dev), do: ["lib"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:jason, "~> 1.1"},
{:httpoison, "~> 1.4"}
# {:inflex, "~> 1.10.0"}
]
end
end