-
Notifications
You must be signed in to change notification settings - Fork 14
/
mix.exs
54 lines (48 loc) · 1.27 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
defmodule Formulator.Mixfile do
use Mix.Project
@source_url "https://github.com/thoughtbot/formulator"
@version "0.4.0"
def project do
[
app: :formulator,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:gettext, ">= 0.11.0"},
{:phoenix_html, "~> 2.4 or ~> 3.0"},
{:ex_doc, "~> 0.18", only: :dev, runtime: false},
{:ecto, "~> 2.1 or ~> 3.0", only: :test, optional: true},
{:phoenix_ecto, "~> 3.2 or ~> 4.0", only: :test, optional: true}
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "#{@version}",
extras: ["README.md"]
]
end
defp package do
[
description: "A form helper for creating labels and inputs with errors",
maintainers: ["David Bernheisel"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Made by thoughtbot" => "https://thoughtbot.com/services/elixir-phoenix"
}
]
end
end