-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
145 lines (136 loc) · 5.03 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedScaffolding.Mixfile do
use Mix.Project
@version "1.2.23"
@source_url "https://github.com/noizu-labs/advanced_elixir_scaffolding"
def project do
[
app: :noizu_advanced_scaffolding,
version: @version,
elixir: "~> 1.10",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env),
source_url: @source_url,
name: "Noizu.AdvancedScaffolding",
description: "Version 3 of our Elixir Scaffolding framework",
package: package(),
docs: docs(),
xref: [exclude: [Phoenix.HTML, UUID, XmlBuilder, HtmlSanitizeEx, Ecto.CastError, Redix, Ecto.Type, Plug.Conn, Poison, Poison.Encoder, Noizu.FastGlobal.Cluster, Giza.SphinxQL, :rocksdb]],
test_coverage: [
summary: [
threshold: 10
],
ignore_modules: [
~r/^Noizu\.ERP\..*/,
~r/^Noizu\.AdvancedScaffolding\.Internal\..*/,
~r/^Noizu\.Permission\.Protocol}\..*/,
~r/^Noizu\.EctoEntity\.Protocol\..*/,
~r/^Noizu\.Entity\.Protocol\..*/,
~r/^Noizu\.RestrictedAccess\.Protocol\..*/,
~r/^Poison\.Encoder\.Noizu\..*/,
~r/^Noizu\.AdvancedScaffolding\.Test\..*/
]
]
]
end # end project
# Specifies which paths to compile per environment.
def elixirc_paths(:test), do: ["lib", "test/fixtures"]
def elixirc_paths(_), do: ["lib"]
def package do
[
maintainers: ["noizu"],
copyright: ["Noizu Labs, Inc. 2021"],
links: %{"GitHub" => @source_url}
]
end # end package
def application do
[
applications: [:logger],
extra_applications: [:con_cache, :fastglobal, :semaphore, :noizu_core, :poison, :amnesia, :noizu_mnesia_versioning, :decimal, :timex, :telemetry]
]
end # end application
def deps do
[
{:ecto_sql, "~> 3.4"},
{:amnesia, git: "https://github.com/noizu/amnesia.git", ref: "9266002", optional: true}, # Mnesia Wrapper
{:elixir_uuid, "~> 1.2" },
{:ex_doc, "~> 0.25.1", only: [:test, :dev], optional: true}, # Documentation Provider
{:markdown, github: "devinus/markdown", optional: true}, # Markdown processor for ex_doc
{:noizu_core, github: "noizu/ElixirCore", tag: "1.0.21"},
{:noizu_mnesia_versioning, github: "noizu/MnesiaVersioning", tag: "0.1.9", override: true},
{:redix, github: "whatyouhide/redix", tag: "v0.7.0", optional: true},
{:rocksdb, "~> 1.7", optional: true},
{:poison, "~> 3.1.0", optional: true},
{:plug, "~> 1.0", optional: true},
{:fastglobal, "~> 1.0"},
{:con_cache, "~> 1.0"},
{:semaphore, "~> 1.0"}, # https://github.com/discordapp/semaphore
{:timex, "~> 3.7"},
{:decimal, "~> 2.0.0"},
{:telemetry, "~> 1.1.0"},
{:junit_formatter, "~> 3.3", only: [:test]},
]
end # end deps
defp docs do
[
source_url_pattern: "https://github.com/noizu-lab/advanced_elixir_scaffolding/blob/master/%{path}#L%{line}",
main: "readme",
extras: ["README.md", "TODO.md", "COPYRIGHT", "markdown/sample_conventions_doc.md"],
source_ref: "v#{@version}",
source_url: @source_url,
groups_for_modules: [
"Behaviours": [
Noizu.DomainObject,
Noizu.SimpleObject,
],
"Internals": [
Noizu.AdvancedScaffolding.Internal
],
"Type Handlers": [
Noizu.DomainObject.DateTime,
Noizu.DomainObject.TimeStamp.Millisecond,
Noizu.DomainObject.TimeStamp.Second,
Noizu.DomainObject.UniversalLink,
],
"Protocols": [
Noizu.EctoEntity.Protocol,
Noizu.Entity.Protocol,
Noizu.ERP,
Noizu.Permission.Protocol,
Noizu.RestrictedAccess.Protocol,
],
"Schema": [
Noizu.AdvancedScaffolding.Database,
Noizu.AdvancedScaffolding.Support.TopologyProvider,
Noizu.AdvancedScaffolding.Support.SchemaProvider,
Noizu.AdvancedScaffolding.Support.Schema
],
"Tasks": [
Mix.Tasks.Scaffolding
]
],
nest_modules_by_prefix: [
Mix.Tasks.Scaffolding,
Noizu,
Noizu.DomainObject,
Noizu.SimpleObject,
Noizu.AdvancedScaffolding,
Noizu.AdvancedScaffolding.Database,
Noizu.AdvancedScaffolding.Sphinx,
Noizu.AdvancedScaffolding.Schema,
Noizu.AdvancedScaffolding.Internal,
Noizu.AdvancedScaffolding.Internal.Core,
Noizu.AdvancedScaffolding.Internal.EntityIndex,
Noizu.AdvancedScaffolding.Internal.Index,
Noizu.AdvancedScaffolding.Internal.Inspect,
Noizu.AdvancedScaffolding.Internal.Json,
Noizu.AdvancedScaffolding.Internal.Persistence,
Noizu.AdvancedScaffolding.Internal.SimpleObject,
Noizu.AdvancedScaffolding.Support,
]
]
end # end docs
end # end defmodule