-
Notifications
You must be signed in to change notification settings - Fork 15
/
mix.exs
69 lines (58 loc) · 1.44 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
defmodule MixGenerator.Mixfile do
use Mix.Project
@name :mix_generator
@version "0.1.10"
@mix_templates (if System.get_env("GEN_DEV") do
{ :mix_templates, path: "../mix_templates" }
else
{ :mix_templates, ">= 0.1.10" }
end)
@extra_applications [
:crypto,
]
@deps [
@mix_templates,
{ :private, ">= 0.0.0" },
{ :ex_doc, ">= 0.0.0", only: :dev },
]
@description """
This application adds a `gen` task to mix, which generates project trees.
Unlike `mix new`, it can be fully customized. You can create private variants
for your own use, and publish public ones that can be shared.
"""
############################################################
def project do
in_production = Mix.env == :prod
[
app: @name,
version: @version,
elixir: ">= 1.4.0",
deps: @deps,
build_embedded: in_production,
start_permanent: in_production,
package: package(),
description: @description,
]
end
def application do
[
extra_applications: @extra_applications
]
end
defp package do
[
files: [
"lib", "mix.exs", "README.md",
],
maintainers: [
"Dave Thomas <[email protected]>",
],
licenses: [
"Apache 2 (see the file LICENSE.md for details)"
],
links: %{
"GitHub" => "https://github.com/pragdave/mix_generator",
}
]
end
end