-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
47 lines (39 loc) · 1.06 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
defmodule PhoenixWithApi.Mixfile do
use Mix.Project
@name :phoenix_with_api
@version "0.1.0"
@deps [
{ :mix_templates, ">0.0.0", app: false },
{ :ex_doc, ">0.0.0", only: [:dev, :test] },
]
@maintainers ["Chris Rees <[email protected]>"]
@github "https://github.com/ElixirCLE/#{@name}"
@description """
Creates a basic Phoenix project with authentication, authorization, and an API.
"""
# ------------------------------------------------------------
def project do
in_production = Mix.env == :prod
[
app: @name,
version: @version,
deps: @deps,
elixir: "~> 1.5",
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"],
maintainers: @maintainers,
licenses: ["Apache 2.0"],
links: %{
"GitHub" => @github,
}
]
end
end