You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: getting_started/mix/1.markdown
+4-4
Original file line number
Diff line number
Diff line change
@@ -216,11 +216,11 @@ If your dependency is another Mix or rebar project, Mix does the right thing: i
216
216
217
217
## 1.5 Umbrella projects
218
218
219
-
It can be convenient to bundle multiple Mix projects together and run Mix tasks for them at the same time. They can be bundled and used together in an what is called an umbrella project. An umbrella project can be created with the following command:
219
+
It can be convenient to bundle multiple Mix projects together and run Mix tasks for them at the same time. They can be bundled and used together in what is called an umbrella project. An umbrella project can be created with the following command:
220
220
221
221
$ mix new project --umbrella
222
222
223
-
It will create a `mix.exs` file with the following contents:
223
+
This will create a `mix.exs` file with the following contents:
224
224
225
225
{% highlight elixir %}
226
226
defmodule Project.Mixfile do
@@ -232,9 +232,9 @@ defmodule Project.Mixfile do
232
232
end
233
233
{% endhighlight %}
234
234
235
-
The `apps_path` option specifies the directory where subprojects will reside. Mix tasks that run in the umbrella project will run for every project in the `apps_path` directory. For example `mix compile` or `mix test` will compile or test every project in the directory. It's important to note that an umbrella project is not a regular Mix project, it's not an OTP application nor can code source files be added.
235
+
The `apps_path` option specifies the directory where subprojects will reside. Mix tasks that run in the umbrella project will run for every project in the `apps_path` directory. For example `mix compile` or `mix test` will compile or test every project in the directory. It's important to note that an umbrella project is neither a regular Mix project, nor is it an OTP application nor can code source files be added.
236
236
237
-
If there are interdependencies between subprojects these have to be specified so that Mix can compile the projects in the correct order. If one project A depends on another project B the dependency has to be specified in A's `mix.exs` file, add the following code to specifiy the dependency:
237
+
If there are interdependencies between subprojects these have to be specified so that Mix can compile the projects in the correct order. If Project A depends on Project B, the dependency has to be specified in Project A's `mix.exs` file; modify the `mix.exs` file to specify the dependency:
0 commit comments