-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmix.exs
More file actions
47 lines (40 loc) · 1.3 KB
/
mix.exs
File metadata and controls
47 lines (40 loc) · 1.3 KB
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
defmodule StateMachine.MixProject do
use Mix.Project
def project, do: [
app: :state_machine,
version: "0.1.9",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env),
description: description(),
package: package(),
deps: deps(),
dialyzer: [],
test_pattern: "*_test.{ex,exs}"
]
def application do
[extra_applications: applications(Mix.env)]
end
defp applications(:test), do: [:postgrex, :ecto, :ecto_sql]
defp applications(_), do: []
defp description, do: """
State Machine implementation in Elixir.
It's a structure and optionally a gen_statem powered process.
It validates states and transitions for integrity and features seamless Ecto-integration.
"""
defp package, do: [
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Ivan Yurov"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/youroff/state_machine"}
]
defp deps, do: [
{:ecto, "~> 3.0", optional: true},
{:ecto_sql, "~> 3.0", optional: true},
{:postgrex, ">= 0.0.0", optional: true},
{:dialyxir, "~> 1.1", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end