-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmix.exs
93 lines (84 loc) · 2.17 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
defmodule Litestream.MixProject do
use Mix.Project
def project do
[
app: :litestream,
version: "0.4.0",
elixir: "~> 1.13",
name: "Litestream",
source_url: "https://github.com/akoutmos/litestream",
homepage_url: "https://hex.pm/packages/litestream",
description: "Add Litestream to your SQLite powered application for effortless backups",
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test
],
deps: deps(),
package: package(),
docs: docs(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :inets, :crypto, :public_key]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Required dependencies
{:erlexec, "~> 2.0"},
{:castore, "~> 1.0"},
{:octo_fetch, "~> 0.4"},
# Development related dependencies
{:ex_doc, "~> 0.34", only: :dev},
{:doctor, "~> 0.21", only: :dev},
{:credo, "~> 1.7", only: :dev},
{:excoveralls, "~> 0.18", only: :test, runtime: false}
]
end
defp package do
[
name: "litestream",
files: ~w(lib mix.exs README.md),
licenses: ["MIT"],
maintainers: ["Alex Koutmos"],
links: %{
"GitHub" => "https://github.com/akoutmos/litestream",
"Sponsor" => "https://github.com/sponsors/akoutmos"
}
]
end
defp docs do
[
main: "readme",
source_ref: "master",
logo: "guides/images/logo.svg",
extras: [
"README.md"
]
]
end
defp aliases do
[
docs: ["docs", ©_files/1]
]
end
defp copy_files(_) do
# Set up directory structure
File.mkdir_p!("./doc/guides/images")
# Copy over image files
"./guides/images/"
|> File.ls!()
|> Enum.each(fn image_file ->
File.cp!("./guides/images/#{image_file}", "./doc/guides/images/#{image_file}")
end)
end
end