-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
67 lines (59 loc) · 1.51 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
defmodule GrovePi.Mixfile do
use Mix.Project
@name "GrovePi"
@version "0.6.1"
@github "https://github.com/adkron/grovepi"
@homepage @github
def project do
[
app: :grovepi,
version: @version,
elixir: "~> 1.7",
name: @name,
description: description(),
package: package(),
source_url: @github,
homepage_url: @homepage,
docs: [extras: ["README.md"]],
aliases: aliases(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_options: [warnings_as_errors: true],
deps: deps()
]
end
def application do
[mod: {GrovePi, []}]
end
defp description do
"""
Use Dexter Industries' GrovePi+ and GrovePiZero boards and many Grove sensors.
"""
end
defp deps do
[
{:dialyxir, "~> 1.0.0-rc4", only: [:dev, :test], runtime: false},
{:circuits_i2c, "~> 0.3"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:mix_test_watch, "~> 0.3", only: :dev, runtime: false},
{:credo, "~> 0.7", only: [:dev, :test]}
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md"],
maintainers: ["Amos King", "Frank Hunleth"],
licenses: ["Apache License"],
links: %{"GitHub" => @github}
]
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
defp aliases do
[
docs: ["docs", ©_images/1]
]
end
end