-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
64 lines (57 loc) · 1.2 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
defmodule PhxTest.MixProject do
use Mix.Project
def project do
[
app: :phx_test,
version: "0.1.1",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description(),
aliases: aliases()
]
end
def application do
[
extra_applications: [:logger, :phx_new]
]
end
defp deps do
[
{:credo, ">= 0.0.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
{:phx_new, "~> 1.6"}
]
end
defp description do
"""
Quickly embed Phoenix sample apps in your project for library development
"""
end
defp package do
[
files: files(),
maintainers: ["m. simon borg"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/msimonborg/phx_test"
}
]
end
defp files do
[
"lib/mix/tasks/phx_test.new.ex",
"lib/mix/phx_test/context.ex",
"mix.exs",
"README.md"
]
end
defp aliases do
[
test: ["test", "credo --strict", "format --check-formatted", "docs"],
setup: ["phx_test.test --setup"],
teardown: ["phx_test.test --teardown"]
]
end
end