-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
66 lines (62 loc) · 1.96 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
defmodule Newt.MixProject do
use Mix.Project
def project do
[
app: :newt,
version: "9.0.0",
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
deps: deps(),
name: "Newt",
description: "A newtype abstraction for Elixir",
package: [
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/jwilger/newt"}
],
source_url: "https://github.com/jwilger/newt",
homepage_url: "https://github.com/jwilger/newt/blob/main/README.md",
docs: [
output: "priv/static/docs",
main: "readme",
extras: ["README.md"]
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:assert_match, "~> 1.0", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ecto, ">= 2.0.0", optional: true},
{:ex_check, "~> 0.16", only: :dev, runtime: false},
{:ex_doc, "~> 0.30", only: [:dev, :test], runtime: false},
{:faker, "~> 0.18"},
{:jason, ">= 1.0.0", optional: true},
{:mix_audit, "~> 2.1", only: :dev, runtime: false},
{:mix_test_interactive, "~> 2.0", only: :dev, runtime: false},
{:phoenix, ">= 1.0.0", optional: true},
{:phoenix_html, ">= 2.0.0", optional: true},
{:stream_data, "~> 1.0"},
{:typed_struct, "~> 0.3"},
{:uuid, "~> 1.1"},
{:vex, "~> 0.9"}
]
end
defp aliases do
[
setup: [
"cmd ln -sf ../../dev-scripts/pre-commit-hook .git/hooks/pre-commit",
"deps.get"
],
test: ["test --warnings-as-errors"],
compile: ["compile --warnings-as-errors"],
dialyzer: ["dialyzer --list-unused-filters --force-check"],
credo: ["credo --strict"]
]
end
end