This repository has been archived by the owner on Jul 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
80 lines (75 loc) · 1.99 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
71
72
73
74
75
76
77
78
79
80
defmodule CivilCode.MixProject do
use Mix.Project
def project do
[
app: :civilcode,
version: "0.0.0",
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
elixirc_paths: elixirc_paths(Mix.env()),
lockfile: "mix.lock",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [
main: "readme",
extras: ["README.md"],
groups_for_modules: [
"Adapters for Ports": [
CivilCode.Repository,
CivilCode.Repository.Behaviour,
CivilCode.RepositoryError
],
Application: [
CivilCode.ApplicationService,
CivilCode.Command,
CivilCode.Params,
CivilCode.ProcessManager,
CivilCode.QueryResult,
CivilCode.QueryService
],
Data: [
CivilCode.Record
],
"Domain Model": [
CivilCode.AggregateRoot,
CivilCode.BusinessRuleViolation,
CivilCode.Entity,
CivilCode.EntityId,
CivilCode.DomainEvent,
CivilCode.DomainService,
CivilCode.ValueObject
],
Types: [
CivilCode.Maybe,
CivilCode.Result,
CivilCode.ResultList
]
]
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
# Development
{:dialyxir, "~> 1.0.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.23.0", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
# Runtime
{:currying, "~> 1.0.3"},
{:ecto, ">= 3.0.0"},
{:jason, "~> 1.0"},
{:typed_struct, "~> 0.2.0", runtime: false},
{:elixir_uuid, "~> 1.2.0"}
]
end
end