forked from bitwalker/conform
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
42 lines (36 loc) · 1.08 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
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: "0.17.0",
elixir: "~> 1.0",
escript: [main_module: Conform],
compilers: compilers(@do_peg_compile?),
description: description,
package: package,
deps: deps(@do_peg_compile?)]
end
def application do
[applications: []]
end
defp compilers(true), do: [:peg, :erlang, :elixir, :app]
defp compilers(_), do: nil
defp deps(true), do: [
{:neotoma, "~> 1.7.3"},
{:ex_doc, "~> 0.7", only: [:docs, :dev]},
{:earmark, "~> 0.1", only: [:docs, :dev]}
]
defp deps(_), do: []
defp description, do: "Easy release configuration for Elixir apps."
defp package do
[ files: ["lib", "src", "priv", "mix.exs", "README.md", "LICENSE"],
contributors: ["Paul Schoenfelder"],
licenses: ["MIT"],
links: %{ "GitHub": "https://github.com/bitwalker/conform" } ]
end
end