forked from healthstarconnectsllc/licensir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
64 lines (58 loc) · 1.5 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
defmodule Licensir.Mixfile do
use Mix.Project
@source_url "https://github.com/unnawut/licensir"
@version "0.7.0"
def project do
[
app: :licensir,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
escript: [main_module: Licensir.Licenses],
name: "Licensir",
deps: deps(),
package: package(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
description:
"An Elixir mix task that list the license(s) " <>
"of all installed packages in your project.",
files: ["lib", "priv", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Unnawut Leepaisalsuwanna"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.8", only: :test}
]
end
defp docs do
[
extras: [
"LICENSE": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"],
filter_prefix: "Licensir"
]
end
end