-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
90 lines (85 loc) · 2.51 KB
/
Copy pathmix.exs
File metadata and controls
90 lines (85 loc) · 2.51 KB
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
defmodule PowerOfThree.MixProject do
use Mix.Project
def project do
[
app: :power_of_3,
version: "0.1.3",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
test_coverage: [
threshold: 90,
ignore_modules: [
# Requires ADBC dependency not available in tests
PowerOfThree.CubeConnection
]
],
dialyzer: [
plt_add_apps: [:ex_unit, :mix],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
ignore_warnings: ".dialyzer_ignore.exs"
],
# Docs
name: "PowerOfThree",
source_url: "https://github.com/borodark/power-of-three",
homepage_url: "https://github.com/borodark/power-of-three",
package: package()
]
end
# 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
[
{:ymlr, "~> 5.0"},
{:ecto_sql, "~> 3.10"},
{:explorer, "~> 0.11.1"},
{:adbc, github: "borodark/adbc", branch: "cleanup-take-II", override: true, optional: true, only: [:dev, :test]},
{:req, "~> 0.5"},
{:ex_doc, "~> 0.34", only: :dev, runtime: false, warn_if_outdated: true},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4.1", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
setup: [
"clean",
"deps.get",
"deps.compile",
"compile",
"ecto.drop",
"ecto.create",
"ecto.migrate"
]
]
end
defp package() do
[
# The main page in the docs
main: "PowerOfThree",
logo: "priv/logo.png",
extras: [
"README.md",
"guides/ten_minutes_to_power_of_three.md",
"docs/blog/auto-generation.md"
],
exclude_patterns: ["lib/generate_data.ex", "lib/example/repo.ex"],
exclude_deps: [:adbc],
description:
"Start with everything. Keep what performs. Pre-aggregate what matters. | Inline Cubes with Ecto.Schema",
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/borodark/power_of_three",
"cube" => "https://cube.dev/docs/product/data-modeling/reference/cube",
"dimensions" => "https://cube.dev/docs/product/data-modeling/reference/dimensions",
"measures" => "https://cube.dev/docs/product/data-modeling/reference/measures"
}
]
end
end