-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
51 lines (44 loc) · 1.11 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
defmodule Printex.Mixfile do
use Mix.Project
def project do
[
app: :printex,
version: "1.1.0",
elixir: "~> 1.10.2",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: "Console Printing with colors and background colors",
package: package(),
aliases: aliases(),
deps: deps()
]
end
def package do
[
maintainers: ["Blackode", "Ahamtech"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/blackode/printex"}
]
end
def application do
[applications: [:logger]]
end
defp aliases do
[docs: ["docs", ©_images/1]]
end
defp copy_images(_) do
File.cp_r("assets", "doc/assets", fn source, destination ->
IO.gets("Overwriting #{destination} by #{source}. Type y to confirm. ") == "y\n"
end)
File.cp_r("doc", "docs", fn _source, _destination ->
true
end)
end
defp deps do
[
{:ex_doc, github: "elixir-lang/ex_doc", override: true, only: :dev},
{:earmark, "~> 1.0", only: :dev},
{:dialyxir, "~> 0.3", only: [:dev]}
]
end
end