-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
62 lines (53 loc) · 1.45 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
defmodule GenTemplateApiClient.Mixfile do
use Mix.Project
@name :gen_template_api_client
@version "0.3.0"
@deps [
{:mix_templates, ">0.0.0", app: false},
{:ex_doc, ">0.0.0", only: [:dev, :test]},
{:version_tasks, "~> 0.10"}
]
@maintainers ["Andrew Forward <[email protected]>"]
@github "https://github.com/aforward/#{@name}"
@description """
A template for building API clients to 3rd party REST applications.
This will generate templates for get, post functions. You then
extend the project with convenience functions to access the API
like it were just another Elixir lib.
"""
# ------------------------------------------------------------
def project do
in_production = Mix.env() == :prod
[
app: @name,
version: @version,
deps: @deps,
elixir: "~> 1.4",
package: package(),
description: @description,
build_embedded: in_production,
start_permanent: in_production
]
end
defp package do
[
name: @name,
files: [
"lib",
"mix.exs",
"README.md",
"LICENSE.md",
"template",
"template/$PROJECT_NAME$/.gitignore",
"template/$PROJECT_NAME$/.formatter.exs",
"template/$PROJECT_NAME$/.iex.exs"
],
maintainers: @maintainers,
licenses: ["Apache 2.0"],
links: %{
"GitHub" => @github
}
# extra: %{ "type" => "a_template_for_mix_gen" },
]
end
end