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-otp/dependencies-and-umbrella-apps.markdown
+4-4
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ def deps do
46
46
end
47
47
```
48
48
49
-
This dependency refers to the latest version of plug in the 0.5.x version series that has been pushed to Hex. This is indicated by the `~>` preceding the version number. For more information on specifying version requirements, see the [documentation for the Version module](/docs/stable/elixir/#!Version.html).
49
+
This dependency refers to the latest version of Plug in the 0.5.x version series that has been pushed to Hex. This is indicated by the `~>` preceding the version number. For more information on specifying version requirements, see the [documentation for the Version module](/docs/stable/elixir/#!Version.html).
50
50
51
51
Typically, stable releases are pushed to Hex. If you want to depend on an external dependency still in development, Mix is able to manage git dependencies, too:
52
52
@@ -76,7 +76,7 @@ The most common tasks are `mix deps.get` and `mix deps.update`. Once fetched, de
76
76
77
77
Internal dependencies are the ones that are specific to your project. They usually don't make sense outside the scope of your project/company/organization. Most of the time, you want to keep them private, whether due to technical, economic or business reasons.
78
78
79
-
If you have an internal dependency, Mix supports two methods of working with them: git repositories or umbrella projects.
79
+
If you have an internal dependency, Mix supports two methods to work with them: git repositories or umbrella projects.
80
80
81
81
For example, if you push the `kv` project to a git repository, you just need to list it in your deps code in order to use it:
82
82
@@ -94,7 +94,7 @@ However, if you push every application as a separate project to a git repository
94
94
95
95
For this reason, Mix supports "umbrella projects." Umbrella projects allow you to create one project that hosts many applications and push all of them to a single git repository. That is exactly the style we are going to explore in the next sections.
96
96
97
-
What we are going to do is create a new mix project. We are going to creatively name it `kv_umbrella`, and this new project will have both the existing `kv` application and the new `kv_server` application inside. The directory structure will look like this:
97
+
What we are going to do is create a new Mix project. We are going to creatively name it `kv_umbrella`, and this new project will have both the existing `kv` application and the new `kv_server` application inside. The directory structure will look like this:
0 commit comments