-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmix.exs
59 lines (51 loc) · 1.29 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
defmodule PhoenixMarkdown.Mixfile do
use Mix.Project
@version "1.0.3"
@github "https://github.com/boydm/phoenix_markdown"
@blog_post "https://medium.com/@boydm/markdown-templates-in-phoenix-25721a3bc682"
def project do
[
app: :phoenix_markdown,
version: @version,
elixir: "~> 1.1",
deps: deps(),
package: [
contributors: ["Boyd Multerer"],
maintainers: ["Boyd Multerer"],
licenses: ["MIT"],
links: %{
"GitHub" => @github,
"Blog Post" => @blog_post
}
],
name: "phoenix_markdown",
source_url: @github,
docs: docs(),
description: """
Markdown Template Engine for Phoenix. Uses Earmark to render.
"""
]
end
def application do
[applications: [:phoenix]]
end
defp deps do
[
{:phoenix, ">= 1.1.0"},
{:phoenix_html, ">= 2.3.0"},
{:earmark, "~> 1.2"}, # Markdown interpreter
{:html_entities, "~> 0.4"},
# Docs dependencies
{:ex_doc, ">= 0.0.0", only: [:dev, :docs]},
{:inch_ex, ">= 0.0.0", only: :docs},
{:credo, "~> 0.8.10", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
extras: ["README.md"],
source_ref: "v#{@version}",
main: "PhoenixMarkdown"
]
end
end