forked from slime-lang/slime
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
74 lines (67 loc) · 1.81 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
defmodule Slime.Mixfile do
use Mix.Project
@version "1.2.1"
@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: :slime,
build_embedded: Mix.env() == :prod,
deps: deps(),
description: """
An Elixir library for rendering Slim-like templates.
""",
elixir: "~> 1.9",
package: package(),
source_url: "https://github.com/slime-lang/slime",
start_permanent: Mix.env() == :prod,
compilers: [:peg, :erlang, :elixir, :app],
elixirc_paths: elixirc_paths(Mix.env()),
version: @version
]
end
def application do
[
applications: [:eex]
]
end
defp elixirc_paths(:test), do: ["lib", "dialyzer_checks"]
defp elixirc_paths(_), do: ["lib"]
def package do
[
maintainers: ["Sean Callan", "Alexander Stanko"],
files: [
"lib",
"tasks",
"src/slime_parser.peg.eex",
"src/slime_parser_transform.erl",
"mix.exs",
"README*",
"LICENSE*",
"CHANGELOG*"
],
licenses: ["MIT"],
links: %{github: "https://github.com/slime-lang/slime"}
]
end
def deps do
[
# packrat parser-generator for PEGs
{:neotoma, "~> 1.7"},
# Benchmarking tool
{:benchfella, ">= 0.0.0", only: [:dev, :test], runtime: false},
# Documentation
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
# Automatic test runner
{:mix_test_watch, ">= 0.0.0", only: :dev, runtime: false},
# Style linter
{:credo, ">= 0.0.0", only: [:dev, :test]},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
# HTML generation helpers
{:phoenix_html, "~> 2.14", only: :test}
]
end
end