forked from dkuku/celixir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
70 lines (63 loc) · 1.71 KB
/
Copy pathmix.exs
File metadata and controls
70 lines (63 loc) · 1.71 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
defmodule Celixir.MixProject do
use Mix.Project
@version "0.3.0"
@source_url "https://github.com/dkuku/celixir"
def project do
[
app: :celixir,
version: @version,
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "A pure Elixir implementation of Google's Common Expression Language (CEL)",
package: package(),
docs: docs(),
name: "Celixir",
source_url: @source_url,
homepage_url: @source_url
]
end
def application do
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support", "test/support/generated"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:protobuf, "~> 0.16", optional: true},
{:tz, "~> 0.28"},
{:styler, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.40", only: :dev, runtime: false},
{:makeup_cel, "~> 0.1.0", only: :dev, runtime: false},
{:benchee, "~> 1.0", only: :dev, runtime: false}
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url},
files: ~w(lib .formatter.exs mix.exs README.md LICENSE demo.livemd)
]
end
defp docs do
[
main: "Celixir",
extras: ["README.md", "guides/tutorial.md", "CHANGELOG.md"],
groups_for_extras: [
Guides: ["guides/tutorial.md"]
],
groups_for_modules: [
Extensions: [
Celixir.Ext.Math,
Celixir.Ext.Strings,
Celixir.Ext.Lists,
Celixir.Ext.Sets,
Celixir.Ext.Encoders,
Celixir.Ext.Regex
]
],
source_ref: "v#{@version}"
]
end
end