-
Notifications
You must be signed in to change notification settings - Fork 6
/
mix.exs
62 lines (53 loc) · 1.29 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
defmodule Mix.Tasks.EyeDrops.Mixfile do
use Mix.Project
def project do
[app: :eye_drops,
version: "1.3.0",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
description: description,
package: package,
test_paths: ["lib"],
aliases: aliases]
end
def application do
[applications: [:logger, :fs]]
end
defp aliases do
[ci: ci_mix,
acceptance: [&accept/1]]
end
def accept(_) do
Mix.shell.info "****** FAKE ACCEPTANCE RAN ******"
end
defp deps do
[
{:fs, "~> 2.12.0"},
{:mock, "~> 0.2.1", only: :test},
{:credo, "~> 0.6.1", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp description do
"""
A configurable mix task to watch file changes
Watch file changes in a project and run the corresponding command when a change happens.
"""
end
defp package do
[
files: ["lib/**/*ex", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Richard Kotze"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/rkotze/eye_drops",
"Docs" => "https://github.com/rkotze/eye_drops/blob/master/README.md"}]
end
defp ci_mix() do
[
"credo -a",
"test"
]
end
end