-
Notifications
You must be signed in to change notification settings - Fork 18
/
mix.exs
64 lines (54 loc) · 1.49 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 Fsmx.MixProject do
use Mix.Project
@version "0.5.0"
def project do
[
app: :fsmx,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
applications: applications(Mix.env()),
deps: deps(),
description: description(),
package: package(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[extra_applications: applications(Mix.env())]
end
defp applications(:test), do: [:logger, :ecto]
defp applications(_), do: [:logger]
defp deps do
[
{:postgrex, ">= 0.0.0", only: :test},
{:ecto, ">= 3.0.0", optional: true},
{:ecto_sql, ">= 3.0.0", optional: true},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp description do
"A Finite-state machine implementation in Elixir, with opt-in Ecto friendliness."
end
defp package do
[
maintainers: ["Miguel Palhas"],
licenses: ["ISC"],
links: %{"GitHub" => "https://github.com/subvisual/fsmx"},
files: ~w(.formatter.exs mix.exs README.md lib LICENSE)
]
end
defp docs do
[
extras: ["README.md"],
main: "readme",
source_url: "https://github.com/subvisual/fsmx",
source_ref: "v#{@version}"
]
end
end