-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmix.exs
More file actions
68 lines (62 loc) · 1.53 KB
/
Copy pathmix.exs
File metadata and controls
68 lines (62 loc) · 1.53 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
defmodule Ogi.MixProject do
use Mix.Project
@source_url "https://github.com/PJUllrich/ogi"
@version "0.2.2"
def project do
[
app: :ogi,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
description: "Renders OpenGraph Images using Typst",
package: package(),
deps: deps(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:typst, "~> 0.1"},
{:plug, ">= 0.0.0"},
{:quokka, "~> 2.8", only: [:dev, :test], runtime: false, optional: true},
{:ex_doc, "~> 0.39", only: :dev, runtime: false, optional: true}
]
end
defp docs do
[
source_url: @source_url,
api_reference: false,
authors: ["Peter Ullrich"],
assets: %{"assets" => "assets"},
main: "readme",
extras: [
"README.md",
"CHANGELOG.md",
"examples/embedded-images.livemd",
"examples/dynamic-images.livemd",
"examples/emojis.livemd",
"examples/templates.livemd"
],
groups_for_extras: [
Examples: [~r"examples/"]
],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp package do
[
name: "ogi",
files: ~w(lib .formatter.exs mix.exs README* LICENSE*
CHANGELOG*),
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
end