-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
43 lines (36 loc) · 971 Bytes
/
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
defmodule Abnf.Mixfile do
use Mix.Project
def project do
[app: :abnf,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
aliases: aliases,
package: package]
end
def application do
[applications: [:logger]]
end
defp deps do
[]
end
defp package do
[description: "ABNF parser for Elixir",
licenses: ["MIT"],
files: ["lib", "priv", "mix.exs", "README.md"],
links: %{"GitHub" => "https://github.com/vanstee/abnf"}]
end
defp aliases do
["generate": "abnf.generate",
"generate.core": &generate_core/1,
"generate.rfc5234": &generate_rfc5234/1]
end
defp generate_core(_) do
Mix.Task.run("abnf.generate", ["priv/core.abnf", "lib/abnf/core.ex", "Abnf.Core"])
end
defp generate_rfc5234(_) do
Mix.Task.run("abnf.generate", ["priv/rfc5234.abnf", "lib/abnf/rfc5234.ex", "Abnf.Rfc5234"])
end
end