-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
105 lines (96 loc) · 2.69 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 LiveFlip.MixProject do
use Mix.Project
@version "0.1.2"
def project do
[
app: :live_flip,
version: @version,
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_path(Mix.env()),
deps: deps(),
name: "LiveFlip",
description: "FLIP animations of elements within LiveView",
source_url: "https://github.com/probably-not/live-flip",
homepage_url: "https://github.com/probably-not/live-flip",
package: [
maintainers: ["Coby Benveniste"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/probably-not/live-flip"},
files: [
"lib",
"assets",
".formatter.exs",
"mix.exs",
"README*",
"LICENSE*"
]
],
aliases: aliases(),
docs: docs(),
dialyzer: [
plt_add_apps: [:mix],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_deps: :app_tree
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
ci: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.github": :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.post": :test
]
]
end
defp elixirc_path(:test), do: ["lib/", "test/support", "bench/"]
defp elixirc_path(:dev), do: ["lib/", "bench/"]
defp elixirc_path(_), do: ["lib/"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: applications(Mix.env())
]
end
defp applications(:dev),
do: applications(:all) ++ [:remixed_remix, :runtime_tools]
defp applications(_all), do: [:logger]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix_live_view, "~> 1.0.0"},
## Testing and Development Dependencies
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:remixed_remix, "~> 2.0.2", only: :dev},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:benchee, "~> 1.0", only: :dev},
{:benchee_markdown, "~> 0.3", only: :dev}
]
end
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
ci: [
"coveralls",
"format --check-formatted",
"credo --strict",
"dialyzer"
]
]
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "README"]
],
source_ref: @version,
skip_undefined_reference_warnings_on: Path.wildcard("**/*.md"),
groups_for_extras: []
]
end
end