-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
108 lines (98 loc) · 2.61 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
defmodule LiveData.MixProject do
use Mix.Project
def project do
[
app: :live_data,
version: "0.1.0-alpha1",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
docs: docs(),
description: """
LiveView-like experience for JSON endpoints
"""
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix, "~> 1.7"},
{:jason, "~> 1.4"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp docs do
[
main: "LiveData",
source_url: "https://github.com/hansihe/live_data",
extra_section: "GUIDES",
extras: extras(),
groups_for_extras: groups_for_extras(),
groups_for_modules: groups_for_modules()
]
end
defp extras do
[
"guides/introduction/installation.md"
]
end
defp groups_for_extras do
[
Introduction: ~r/guides\/introduction\/.?/
]
end
defp groups_for_modules do
# Ungrouped modules:
#
# LiveData
# LiveData.Router
# LiveData.Tracked
[
"Data-structures": [
LiveData.Tracked.CustomFragment,
LiveData.Tracked.Datastructures.ClientList
],
Encodings: [
LiveData.Tracked.Encoding.JSON,
LiveData.Tracked.Encoding.Binary
],
Internal: [
LiveData.Tracked.FlatAst,
LiveData.Tracked.FlatAst.FromAst,
LiveData.Tracked.FlatAst.ToAst,
LiveData.Tracked.FlatAst.Expr.Scope,
LiveData.Tracked.FlatAst.Expr.Block,
LiveData.Tracked.FlatAst.Expr.AccessField,
LiveData.Tracked.FlatAst.Expr.CallMF,
LiveData.Tracked.FlatAst.Pass.Normalize,
LiveData.Tracked.FlatAst.Pass.CalculateNesting,
LiveData.Tracked.FlatAst.Pass.RewriteAst,
LiveData.Tracked.FlatAst.Pass.RewriteAst.MakeStructure,
LiveData.Tracked.FlatAst.Pass.RewriteAst.ExpandDependencies,
LiveData.Tracked.FlatAst.Pass.RewriteAst.RewriteScope,
LiveData.Tracked.FlatAst.Pass.RewriteAst.StaticsAgent,
LiveData.Tracked.FlatAst.PDAst,
LiveData.Tracked.FlatAst.Util.Transcribe
]
]
end
defp package do
[
maintainers: ["Hans Elias B. Josephsen"],
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/hansihe/live_data"
}
]
end
end