1defmodule Atex.MixProject do
2 use Mix.Project
3
4 @version "0.4.0"
5 @github "https://github.com/cometsh/atex"
6 @tangled "https://tangled.sh/@comet.sh/atex"
7
8 def project do
9 [
10 app: :atex,
11 version: @version,
12 elixir: "~> 1.18",
13 start_permanent: Mix.env() == :prod,
14 deps: deps(),
15 name: "atex",
16 description: "A set of utilities for working with the AT Protocol in Elixir.",
17 package: package(),
18 docs: docs()
19 ]
20 end
21
22 def application do
23 [
24 extra_applications: [:logger],
25 mod: {Atex.Application, []}
26 ]
27 end
28
29 defp deps do
30 [
31 {:peri, "~> 0.6"},
32 {:multiformats_ex, "~> 0.2"},
33 {:recase, "~> 0.5"},
34 {:req, "~> 0.5"},
35 {:typedstruct, "~> 0.5"},
36 {:ex_cldr, "~> 2.42"},
37 {:credo, "~> 1.7", only: [:dev, :test], runtime: false},
38 {:ex_doc, "~> 0.34", only: :dev, runtime: false, warn_if_outdated: true}
39 ]
40 end
41
42 defp package do
43 [
44 licenses: ["MIT"],
45 links: %{"GitHub" => @github, "Tangled" => @tangled}
46 ]
47 end
48
49 defp docs do
50 [
51 extras: [
52 LICENSE: [title: "License"],
53 "README.md": [title: "Overview"]
54 ],
55 main: "readme",
56 source_url: @github,
57 source_ref: "v#{@version}",
58 formatters: ["html"]
59 ]
60 end
61end