-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
96 lines (92 loc) · 3.14 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
defmodule FlagsmithEngine.MixProject do
use Mix.Project
def project do
[
app: :flagsmith_engine,
version: "2.2.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
# DIALYZER
dialyzer: [
plt_file: {:no_warn, "priv/plts/#{Mix.env()}/dialyzer.plt"}
],
# DOCUMENTATION DETAILS
source_url: "https://github.com/Flagsmith/flagsmith-elixir-client",
homepage_url: "https://hexdocs.pm/flagsmith_engine/readme.html",
docs: [
main: "hexdocs",
extras: ["HEXDOCS.md", "README.md"],
nest_modules_by_prefix: [
Flagsmith.Schemas.Environment,
Flagsmith.Schemas.Features,
Flagsmith.Schemas.Segments,
Flagsmith.Schemas.Traits,
Flagsmith.Schemas.Types
],
groups_for_modules: [
Client: [
Flagsmith.Client,
Flagsmith.Configuration,
Flagsmith.Supervisor
],
Schemas: [
Flagsmith.Schemas.Environment,
Flagsmith.Schemas.Environment.FeatureState,
Flagsmith.Schemas.Environment.Feature,
Flagsmith.Schemas.Environment.Project,
Flagsmith.Schemas.Environment.Organisation,
Flagsmith.Schemas.Environment.Integration,
Flagsmith.Schemas.Environment.MultivariateFeatureOption,
Flagsmith.Schemas.Environment.MultivariateFeatureStateValue,
Flagsmith.Schemas.Features.FeatureState,
Flagsmith.Schemas.Features.Feature,
Flagsmith.Schemas.Flags,
Flagsmith.Schemas.Flag,
Flagsmith.Schemas.Identity,
Flagsmith.Schemas.Segments.Segment,
Flagsmith.Schemas.Segments.Segment.Condition,
Flagsmith.Schemas.Segments.Segment.Rule,
Flagsmith.Schemas.Types.Segment.Type,
Flagsmith.Schemas.Types.Operator,
Flagsmith.Schemas.Traits.Trait,
Flagsmith.Schemas.Traits.Trait.Value
]
]
],
description:
"Elixir Engine and Client for Flagsmith. Ship features with confidence using feature flags.",
package: [
exclude_patterns: [~r/.*~$/, ~r/#.*#$/, ~r/priv\/plts/],
licenses: ["MIT"],
links: %{
"github/readme" => "https://github.com/Flagsmith/flagsmith-elixir-client"
}
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:tesla, "~> 1.4"},
{:jason, "~> 1.2"},
{:ecto, "~> 3.7"},
{:typed_ecto_schema, "~> 0.3", runtime: false},
{:typed_enum, "~> 0.1"},
{:plug_cowboy, "~> 2.0", only: :test, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:mox, "~> 1.0", only: :test}
]
end
end