-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmix.exs
144 lines (135 loc) · 3.82 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
defmodule Ecspanse.MixProject do
use Mix.Project
@version "0.10.0"
@source_url "https://github.com/iacobson/ecspanse"
def project do
[
app: :ecspanse,
version: @version,
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
# hex
description: description(),
package: package(),
# docs
name: "ECSpanse",
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :crypto]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:elixir_uuid, "~> 1.2"},
{:ex2ms, "~> 1.6"},
{:memoize, "~> 1.4"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:styler, "~> 0.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
defp docs do
[
main: "Ecspanse",
source_ref: "v#{@version}",
logo: "guides/images/logo.png",
extra_section: "GUIDES",
source_url: @source_url,
extras: [
"guides/getting_started.md",
"guides/tutorial.md",
"guides/save_load.md",
"CHANGELOG.md"
],
groups_for_docs: [
Generic: &(&1[:group] == :generic),
Entities: &(&1[:group] == :entities),
Export: &(&1[:group] == :export),
Restore: &(&1[:group] == :restore),
Relationships: &(&1[:group] == :relationships),
Components: &(&1[:group] == :components),
Resources: &(&1[:group] == :resources),
Tags: &(&1[:group] == :tags),
"Implemented Callbacks": &(&1[:group] == :implemented)
],
nest_modules_by_prefix: [
Ecspanse.Entity,
Ecspanse.Component,
Ecspanse.System,
Ecspanse.Resource,
Ecspanse.Event,
Ecspanse.Query,
Ecspanse.Command,
Ecspanse.Template,
Ecspanse.Projection,
Ecspanse.Snapshot
],
groups_for_modules: [
API: [
Ecspanse,
Ecspanse.Data,
Ecspanse.Frame,
Ecspanse.Server,
Ecspanse.Server.State,
Ecspanse.TestServer
],
Entities: [Ecspanse.Entity],
Components: [
Ecspanse.Component,
Ecspanse.Component.Children,
Ecspanse.Component.Parents
],
Systems: [
Ecspanse.System,
Ecspanse.System.WithEventSubscriptions,
Ecspanse.System.WithoutEventSubscriptions,
Ecspanse.System.CreateStartupResources,
Ecspanse.System.Timer,
Ecspanse.System.TrackFPS,
Ecspanse.System.Debug
],
Resources: [Ecspanse.Resource, Ecspanse.Resource.FPS],
States: [Ecspanse.State],
Events: [Ecspanse.Event],
Queries: [Ecspanse.Query],
Commands: [Ecspanse.Command],
Templates: [
Ecspanse.Template.Component,
Ecspanse.Template.Component.Timer,
Ecspanse.Template.Event,
Ecspanse.Template.Event.Timer
],
Projections: [Ecspanse.Projection],
Snapshots: [Ecspanse.Snapshot]
]
]
end
defp package do
[
maintainers: ["Dorian Iacobescu"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
def description do
"""
Ecspanse is an Entity Component System (ECS) library for Elixir,
offering a suite of features including:
flexible queries with multiple filters,
dynamic bidirectional relationships,
versatile tagging capabilities,
system event subscriptions,
or asynchronous system execution.
"""
end
end