forked from phoenixframework/phoenix_html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
52 lines (47 loc) · 1.22 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
defmodule PhoenixHTML.Mixfile do
use Mix.Project
# Also change package.json version
@source_url "https://github.com/phoenixframework/phoenix_html"
@version "3.3.1"
def project do
[
app: :phoenix_html,
version: @version,
elixir: "~> 1.7",
deps: deps(),
name: "Phoenix.HTML",
description: "Phoenix view functions for working with HTML templates",
package: package(),
docs: [
extras: ["CHANGELOG.md"],
source_url: @source_url,
source_ref: "v#{@version}",
main: "Phoenix.HTML",
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
]
end
def application do
[
extra_applications: [:eex, :logger],
env: [csrf_token_reader: {Plug.CSRFProtection, :get_csrf_token_for, []}]
]
end
defp deps do
[
{:plug, "~> 1.5", optional: true},
{:ex_doc, ">= 0.0.0", only: :docs}
]
end
defp package do
[
maintainers: ["Chris McCord", "José Valim"],
licenses: ["MIT"],
files: ~w(lib priv CHANGELOG.md LICENSE mix.exs package.json README.md),
links: %{
Changelog: "https://hexdocs.pm/phoenix_html/changelog.html",
GitHub: @source_url
}
]
end
end