-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
56 lines (49 loc) · 1.19 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
defmodule Expug.Mixfile do
use Mix.Project
@version "0.9.2"
@description """
Indented shorthand templates for HTML. (pre-release)
"""
def project do
[app: :expug,
version: @version,
description: @description,
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
source_url: "https://github.com/rstacruz/expug",
homepage_url: "https://github.com/rstacruz/expug",
docs: docs(),
package: package(),
deps: deps()]
end
def application do
[applications: [:logger]]
end
defp deps do
[
{:earmark, "~> 1.2.3", only: :dev},
{:ex_doc, "~> 0.18.1", only: :dev}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def package do
[
maintainers: ["Rico Sta. Cruz"],
licenses: ["MIT"],
files: ["lib", "mix.exs", "README.md"],
links: %{github: "https://github.com/rstacruz/expug"}
]
end
def docs do
[
source_ref: "v#{@version}",
main: "readme",
extras:
Path.wildcard("*.md") ++
Path.wildcard("docs/**/*.md")
]
end
end