forked from bitwalker/conform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
51 lines (45 loc) · 1.28 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
defmodule Conform.Mixfile do
use Mix.Project
@compile_peg_task "tasks/compile.peg.exs"
@do_peg_compile? File.exists?(@compile_peg_task)
if @do_peg_compile? do
Code.eval_file @compile_peg_task
end
def project do
[app: :conform,
version: "2.3.2",
elixir: "~> 1.3",
escript: [main_module: Conform],
compilers: compilers(@do_peg_compile?),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
docs: docs(),
deps: deps()]
end
def application do
[applications: [:neotoma]]
end
defp compilers(true), do: [:peg, :erlang, :elixir, :app]
defp compilers(_), do: nil
defp deps do
[{:neotoma, "~> 1.7.3"},
{:ex_doc, "~> 0.13", only: :dev}]
end
defp description, do: "Easy, powerful, and extendable configuration tooling for releases."
defp package do
[files: ["lib", "src", "priv", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Paul Schoenfelder"],
licenses: ["MIT"],
links: %{ "GitHub": "https://github.com/bitwalker/conform" }]
end
defp docs do
[main: "getting-started",
extras: [
"docs/Getting Started.md",
"docs/Custom Types.md",
"docs/Integrating with Distillery.md"
]]
end
end