-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
60 lines (52 loc) · 1.36 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
defmodule ChoreRunner.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :chore_runner,
version: "0.5.2",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
description: """
An Elixir library for writing and running code chores.
""",
aliases: aliases()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_view, "~> 0.18"},
{:phoenix_view, "~> 2.0"},
{:phoenix_html, "~> 4.0"},
{:phoenix_html_helpers, "~> 1.0"},
{:telemetry, "~> 1.1"}
]
end
defp package do
[
maintainers: ["Chris Freeze"],
licenses: ["Apache 2.0"],
links: %{github: "https://github.com/pepsico-ecommerce/chore_runner"},
files: ~w(lib priv/css mix.exs README.md CHANGELOG.md .formatter.exs)
]
end
defp aliases do
[publish: ["hex.publish", &git_tag/1]]
end
defp git_tag(_args) do
System.cmd("git", ["tag", "v" <> Mix.Project.config()[:version]])
System.cmd("git", ["push", "--tags"])
end
end