-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
76 lines (66 loc) · 1.85 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
68
69
70
71
72
73
74
75
76
defmodule ElixirScribe.MixProject do
use Mix.Project
# The Elixir version here needs to be equal or greater then the one
# used by the Phoenix Framework and Phoenix Installer.
@elixir_requirement "~> 1.14"
@scm_url "https://github.com/exadra37/elixir-scribe"
@description """
Elixir Scribe - A Mix Task to Generate Elixir and Phoenix Projects
The Elixir Scribe tool aims to help developers to more easily write clean code in a clean software architecture for enhanced developer experience and productivity.
"""
def project do
[
app: :elixir_scribe,
name: "Elixir Scribe",
version: "0.2.1",
elixir: @elixir_requirement,
start_permanent: Mix.env() == :prod,
homepage_url: @scm_url,
source_url: @scm_url,
description: @description,
package: package(),
docs: docs(),
aliases: aliases(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
maintainers: ["Paulo Renato (Exadra37)"],
licenses: ["MIT"],
links: %{"GitHub" => @scm_url},
files: ~w(lib priv LICENSE.md mix.exs README.md .formatter.exs),
exclude_patterns: [".local"]
]
end
defp docs() do
[
main: "readme",
extras: ["README.md"]
# groups_for_extras: [
# Examples: ~r"test/examples"
# ],
]
end
defp aliases do
[docs: ["docs", ©_images/1]]
end
defp copy_images(_) do
File.cp_r!("assets", "doc/assets")
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:norm, "~> 0.13"}
]
end
end