-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
105 lines (93 loc) · 2.17 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
defmodule Comment.MixProject do
use Mix.Project
@version "0.0.1"
def project do
[
app: :comment,
deps: deps(),
description: description(),
docs: docs(),
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
name: "Comment",
package: package(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
docs: :dev,
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test
],
releases: releases(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
version: @version
]
end
def application do
[
mod: {Comment, []},
extra_applications: [
:crypto,
:ecto,
:logger,
:plug_cowboy,
:tentacat
]
]
end
defp elixirc_paths(:test) do
["lib", "test/support"]
end
defp elixirc_paths(_) do
["lib"]
end
defp deps do
[
{:askimet_ex, "~> 0.1.1"},
{:ecto_sql, "~> 3.2"},
{:joken, "~> 2.2"},
{:plug_cowboy, "~> 2.1"},
{:postgrex, "~> 0.15"},
{:tentacat, "~> 1.0"},
# Test dependencies
{:credo, "~> 1.1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.7", only: [:dev], runtime: false},
{:ex_machina, "~> 2.3", only: :test},
{:excoveralls, "~> 0.12", only: :test},
{:faker, "~> 0.13", only: :test},
# Docs dependencies
{:ex_doc, "~> 0.21", only: :dev}
]
end
defp description do
"An static web comments generator privacy focused"
end
defp docs do
[
extras: ["README.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/mijailr/CommentEX"
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Mijail Rondon"],
licenses: ["MIT"],
links: %{github: "https://github.com/mijailr/CommentEX"}
]
end
defp releases do
[
production: [
include_executables_for: [:unix],
applications: [runtime_tools: :permanent]
]
]
end
end