forked from tmecklem/elixir_lcd
-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
53 lines (46 loc) · 1.23 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
defmodule ExLCD.Mixfile do
use Mix.Project
def project do
[app: :ex_lcd,
version: "0.4.0",
elixir: "~> 1.4",
description: description(),
package: package(),
docs: [extras: ["README.md"]],
aliases: ["docs": ["docs", ©_images/1]],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
deps: deps()]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:prod), do: ["lib"]
defp elixirc_paths(_), do: ["test/support", "lib"]
def application do
[]
end
defp deps do
[
{:elixir_ale, "~> 0.6.1"},
{:ex_doc, "~> 0.11", only: [:dev]}
]
end
defp description do
"""
Hex package to use character matrix LCD displays including HD44780
in your Elixir/nerves projects. Uses elixir_ale for IO.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Erik Petersen"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/cthree/ex_lcd"}
]
end
# Copy the images referenced by docs, since ex_doc doesn't do this.
defp copy_images(_) do
File.cp_r "assets", "doc/assets"
end
end