Skip to content

Commit 237c485

Browse files
author
José Valim
committed
Improve docs for generated apps
1 parent 78ba846 commit 237c485

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

lib/mix/lib/mix/tasks/new.ex

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ defmodule Mix.Tasks.New do
183183
184184
# Dependencies can be hex.pm packages:
185185
#
186-
# {:mydep, "~> 0.3.0"}
186+
# {:mydep, "~> 0.3.0"}
187187
#
188188
# Or git/path repositories:
189189
#
190-
# {:foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1"}
190+
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1"}
191191
#
192192
# Type `mix help deps` for more examples and options
193193
defp deps do
@@ -216,9 +216,17 @@ defmodule Mix.Tasks.New do
216216
<%= @otp_app %>
217217
end
218218
219-
# List all dependencies in the format:
219+
# Dependencies can be hex.pm packages:
220+
#
221+
# {:mydep, "~> 0.3.0"}
222+
#
223+
# Or git/path repositories:
224+
#
225+
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1"}
220226
#
221-
# {:foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1"}
227+
# To depend on another app inside the umbrella:
228+
#
229+
# {:myapp, in_umbrella: true}
222230
#
223231
# Type `mix help deps` for more examples and options
224232
defp deps do
@@ -236,9 +244,13 @@ defmodule Mix.Tasks.New do
236244
deps: deps]
237245
end
238246
239-
# List all dependencies in the format:
247+
# Dependencies can be hex.pm packages:
248+
#
249+
# {:mydep, "~> 0.3.0"}
250+
#
251+
# Or git/path repositories:
240252
#
241-
# {:foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1"}
253+
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1"}
242254
#
243255
# Type `mix help deps` for more examples and options
244256
defp deps do

0 commit comments

Comments
 (0)