Generate URLs for Libravatar and Gravatar avatars
1# SPDX-FileCopyrightText: 2024 Łukasz Niemier <#@hauleth.dev>
2#
3# SPDX-License-Identifier: MPL-2.0
4
5defmodule Aww.MixProject do
6 use Mix.Project
7
8 def project do
9 [
10 app: :aww,
11 description: "Generate URI for avatars",
12 version: "1.0.0",
13 package: [
14 licenses: ["MPL-2.0"],
15 links: %{
16 "Gravatar" => "https://gravatar.com",
17 "Libravatar" => "https://libravatar.org",
18 "Codeberg" => "https://codeberg.org/hauleth/aww",
19 "SourceHut" => "https://git.sr.ht/~hauleth/aww"
20 }
21 ],
22 elixir: "~> 1.16",
23 start_permanent: Mix.env() == :prod,
24 elixirc_paths: elixirc_paths(Mix.env()),
25 test_coverage: [
26 ignore_modules: [
27 AwwTest.Dns
28 ]
29 ],
30 docs: [
31 formatters: ~w[html],
32 extras: [
33 "README.md"
34 ],
35 main: "readme"
36 ],
37 deps: deps()
38 ]
39 end
40
41 defp elixirc_paths(:test), do: ["lib", "test/support"]
42 defp elixirc_paths(_), do: ["lib"]
43
44 # Run "mix help compile.app" to learn about applications.
45 def application do
46 [
47 extra_applications: [:logger],
48 mod: {Aww.Application, []},
49 env: [
50 default: :libravatar,
51 defederated: []
52 ]
53 ]
54 end
55
56 # Run "mix help deps" to learn about dependencies.
57 defp deps do
58 [
59 {:ex_doc, ">= 0.0.0", only: [:dev, :test]},
60 {:stream_data, "~> 1.1", only: [:test]}
61 ]
62 end
63end