-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
67 lines (59 loc) · 1.52 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
defmodule PlugContentSecurityPolicy.Mixfile do
use Mix.Project
@github_url "https://github.com/xtian/plug_content_security_policy"
@version "0.2.1"
def project do
[
app: :plug_content_security_policy,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [
flags: [
:error_handling,
:race_conditions,
:unmatched_returns
],
ignore_warnings: "config/dialyzer_ignore.exs"
],
# Hex
description: description(),
package: package(),
# Docs
name: "PlugContentSecurityPolicy",
docs: [
main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}",
source_url: @github_url
]
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:credo_contrib, "~> 0.2", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0-rc", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.18.0", only: :dev},
{:plug, "~> 1.3"}
]
end
def description do
"""
A Plug module for inserting a Content Security Policy header into the
response. Supports generating nonces as specified in CSP Level 2.
"""
end
def package do
[
maintainers: ["Christian Wesselhoeft"],
licenses: ["ISC"],
links: %{"GitHub" => @github_url}
]
end
end