-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
124 lines (114 loc) · 3.34 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
defmodule Inngest.MixProject do
use Mix.Project
@version File.read!("VERSION") |> String.trim()
def project do
[
app: :inngest,
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
deps: deps(),
aliases: aliases(),
package: package(),
# tests
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
# Docs
name: "Inngest",
source_url: "https://github.com/darwin67/inngest-ex",
description: "Elixir SDK for Inngest",
homepage_url: "https://inngest.com",
docs: [
main: "Inngest",
authors: ["Darwin Wu <[email protected]>"],
# source_ref: "v#{@version}",
assets: "docs/assets",
logo: "docs/assets/logo.png",
extras:
["CHANGELOG.md", "docs/**/*.md"]
|> Enum.map(&Path.wildcard/1)
|> List.flatten(),
groups_for_extras: [
# Guides: Path.wildcard("docs/guides/*.md"),
References: Path.wildcard("docs/references/*.md"),
Development: Path.wildcard("docs/development/*.md"),
Cloud: Path.wildcard("docs/platform/*.md"),
Changes: ["CHANGELOG.md"]
],
groups_for_modules: [
Function: [
Inngest.Event,
Inngest.Function,
Inngest.FnOpts,
Inngest.Trigger,
Inngest.Function.Step,
Inngest.Function.Context,
Inngest.Function.Input
],
Router: [
Inngest.Router,
Inngest.Router.Phoenix,
Inngest.Router.Plug,
Inngest.Signature
],
Helper: [
Inngest.CacheBodyReader
]
]
]
]
end
defp package do
[
maintainers: ["Darwin Wu <[email protected]>"],
licenses: ["Apache-2.0"],
links: %{github: "https://github.com/darwin67/inngest-ex"},
files: ~w(lib mix.exs README.md LICENSE.md VERSION CHANGELOG.md)
]
end
defp elixirc_paths(:dev), do: ["lib", "test/support"]
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
[
{:tesla, "~> 1.4"},
{:jason, "~> 1.4"},
{:plug, "~> 1.14"},
{:timex, "~> 3.7"},
{:slugify, "~> 1.3"},
# dev / test
{:plug_cowboy, "~> 2.0", only: [:dev, :test]},
{:phoenix, "~> 1.6", only: [:dev, :test]},
# {:bandit, "~> 0.6", only: :dev},
{:tz, "~> 0.26", only: :dev},
{:tz_extra, "~> 0.26", only: :dev},
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
{:dotenv, "~> 3.0", only: [:dev]},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.10", only: :test}
]
end
defp aliases() do
[
lint: ["credo"],
"fmt:check": [
"format --check-formatted mix.exs 'lib/**/*.{ex,exs}' 'test/**/*.{ex,exs}'"
],
dev: "run --no-halt dev.exs"
]
end
end