-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmix.exs
70 lines (63 loc) · 1.67 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
defmodule Lettuce.MixProject do
use Mix.Project
def project do
[
app: :lettuce,
version: "0.3.0",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
deps: deps(),
package: package(),
dialyzer: dialyzer(),
test_coverage: test_coverage(),
preferred_cli_env: preferred_cli_env(),
description:
"Lettuce checks the files within an elixir project and then runs `iex -S mix`. It initialises the state of a generic server with the `.ex` files inside `lib` and their last modified time. By default `lib` is used but you can specify which folders you want to be watched.",
docs: [
main: "readme",
extras: ["README.md"]
]
]
end
defp dialyzer() do
[
plt_add_deps: [:apps_direct],
plt_add_apps: [:mix],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp test_coverage do
[
tool: ExCoveralls
]
end
defp preferred_cli_env do
[
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.json": :test,
coveralls: :test
]
end
def application do
[
extra_applications: [:logger],
mod: {Lettuce.Application, []}
]
end
defp deps do
[
{:ex_doc, "~> 0.30.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.17.0", only: :test},
{:dialyxir, "~> 1.3.0", only: [:dev, :test], runtime: false}
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Josep Lluis Giralt D'Lacoste"],
licenses: ["MIT License"],
links: %{"GitHub" => "https://github.com/gilacost/lettuce"}
]
end
end