-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
98 lines (88 loc) · 2.32 KB
/
mix.exs
File metadata and controls
98 lines (88 loc) · 2.32 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
91
92
93
94
95
96
97
98
defmodule Web.MixProject do
use Mix.Project
@version "0.4.0"
@repo_url "https://github.com/sntran/web"
@description "A protocol-agnostic, zero-buffer suite of Web Standard APIs for Elixir."
def project do
[
app: :web,
version: @version,
elixir: "~> 1.19",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
# Hex Metadata
description: @description,
package: package(),
# Docs
name: "Web",
source_url: @repo_url,
docs: [
main: "Web",
extras: ["README.md"]
],
test_coverage: [tool: ExCoveralls],
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :ssl],
mod: {Web.Application, []}
]
end
defp package do
[
licenses: ["Apache-2.0"],
files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md),
requirements: %{
"erlang" => ">= 28.0.0"
},
links: %{
"GitHub" => @repo_url,
"JS Fetch Spec" => "https://fetch.spec.whatwg.org/"
},
maintainers: ["sntran"]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test,
precommit: :test
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:finch, "~> 0.21"},
{:castore, "~> 1.0"},
{:idna, "~> 7.1"},
{:jason, "~> 1.4"},
{:benchee, "~> 1.5", only: [:dev, :test]},
{:stream_data, "~> 1.3", only: :test},
{:excoveralls, "~> 0.18", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.40", only: :dev, runtime: false}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to ensure formatting is consistent before committing, you might run:
#
# $ mix precommit
#
# See the documentation for `Mix` for more info on aliases.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
precommit: ["format", "credo --strict", "test --cover"]
]
end
end