forked from phoenixframework/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
70 lines (62 loc) · 1.61 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
for path <- :code.get_path(),
Regex.match?(~r/phx_new-[\w\.\-]+\/ebin$/, List.to_string(path)) do
Code.delete_path(path)
end
defmodule Phx.New.MixProject do
use Mix.Project
@version "1.7.10"
@scm_url "https://github.com/phoenixframework/phoenix"
# If the elixir requirement is updated, we need to update:
#
# 1. all mix.exs generated by the installer
# 2. guides/introduction/installation.md
# 3. guides/deployment/releases.md
# 4. test/test_helper.exs at the root
# 5. installer/lib/mix/tasks/phx.new.ex
#
@elixir_requirement "~> 1.14"
def project do
[
app: :phx_new,
start_permanent: Mix.env() == :prod,
version: @version,
elixir: @elixir_requirement,
deps: deps(),
package: [
maintainers: [
"Chris McCord",
"José Valim",
"Gary Rennie",
"Jason Stiebs"
],
licenses: ["MIT"],
links: %{"GitHub" => @scm_url},
files: ~w(lib templates mix.exs README.md)
],
preferred_cli_env: [docs: :docs],
source_url: @scm_url,
docs: docs(),
homepage_url: "https://www.phoenixframework.org",
description: """
Phoenix framework project generator.
Provides a `mix phx.new` task to bootstrap a new Elixir application
with Phoenix dependencies.
"""
]
end
def application do
[
extra_applications: [:eex, :crypto]
]
end
def deps do
[
{:ex_doc, "~> 0.24", only: :docs}
]
end
defp docs do
[
source_url_pattern: "#{@scm_url}/blob/v#{@version}/installer/%{path}#L%{line}"
]
end
end