A set of utilities for working with the AT Protocol in Elixir.
at main 1.9 kB view raw
1defmodule Atex.MixProject do 2 use Mix.Project 3 4 @version "0.7.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.39", only: :dev, runtime: false, warn_if_outdated: true}, 39 {:plug, "~> 1.18"}, 40 {:jason, "~> 1.4"}, 41 {:jose, "~> 1.11"}, 42 {:bandit, "~> 1.0", only: [:dev, :test]}, 43 {:con_cache, "~> 1.1"}, 44 {:mutex, "~> 3.0"}, 45 {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false} 46 ] 47 end 48 49 defp package do 50 [ 51 licenses: ["MIT"], 52 links: %{"GitHub" => @github, "Tangled" => @tangled} 53 ] 54 end 55 56 defp docs do 57 [ 58 extras: [ 59 LICENSE: [title: "License"], 60 "README.md": [title: "Overview"], 61 "CHANGELOG.md": [title: "Changelog"] 62 ], 63 main: "readme", 64 source_url: @github, 65 source_ref: "v#{@version}", 66 formatters: ["html"], 67 groups_for_modules: [ 68 "Data types": [Atex.AtURI, Atex.DID, Atex.Handle, Atex.NSID, Atex.TID], 69 XRPC: ~r/^Atex\.XRPC/, 70 OAuth: [Atex.Config.OAuth, Atex.OAuth, Atex.OAuth.Plug], 71 Lexicons: ~r/^Atex\.Lexicon/, 72 Identity: ~r/^Atex\.IdentityResolver/ 73 ] 74 ] 75 end 76end