forked from nikkomiu/phoenix_inline_svg
/
mix.exs
58 lines (52 loc) · 1.42 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
defmodule PhoenixInlineSvg.Mixfile do
use Mix.Project
def project do
[
app: :phoenix_inline_svg,
version: "1.2.1",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
description: description(),
preferred_cli_env: cli_env(),
test_coverage: [tool: ExCoveralls],
docs: [extras: ["README.md"]]
]
end
def cli_env() do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:phoenix, "~> 1.4"},
{:floki, "~> 0.21.0"},
{:inch_ex, "~> 1.0", only: [:dev, :test]},
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.5", only: [:dev, :test]},
{:ex_doc, ">= 0.20.0", only: [:dev], runtime: false}
]
end
defp description do
"""
An inline SVG file renderer for Phoenix Framework. This package
is designed to make loading SVG based icons into HTML structure
much easeier in Phoenix Frameowrk.
"""
end
defp package do
[
maintainers: ["Nikko Miu <nikkoamiu@gmail.com>"],
licenses: ["MIT"],
links: %{github: "https://github.com/nikkomiu/phoenix_inline_svg"}
]
end
end