on master help sign in
Update style of elm.json dependencies
commitf6ea101750413afaf0d3e3eba7194cede518d0e7 authorEvan Czaplicki <evancz@users.noreply.github.com> dateFri 22 Jun 2018, 19:49 (8 years ago) parentbce36b4
1 file changed+13−8
docs/elm.json/application.md+13−8
docs/elm.json/application.md+13−8
@@ -10,17 +10,20 @@ This is a decent baseline for pretty much any applications made with Elm. You wi
1010 ],
1111 "elm-version": "0.19.0",
1212 "dependencies": {
13− "elm-lang/browser": "1.0.0",
14− "elm-lang/core": "6.0.0",
15− "elm-lang/html": "3.0.0",
16− "elm-lang/json": "1.0.0"
17− },
18− "test-dependencies": {},
19− "do-not-edit-this-by-hand": {
20− "transitive-dependencies": {
13+ "direct": {
14+ "elm-lang/browser": "1.0.0",
15+ "elm-lang/core": "6.0.0",
16+ "elm-lang/html": "3.0.0",
17+ "elm-lang/json": "1.0.0"
18+ },
19+ "indirect": {
2120 "elm-lang/url": "1.0.0",
2221 "elm-lang/virtual-dom": "3.0.0"
2322 }
23+ },
24+ "test-dependencies": {
25+ "direct": {},
26+ "indirect": {}
2427 }
2528}
2629```
@@ -53,6 +56,8 @@ The exact version of Elm this builds with. Should be `"0.19.0"` for most people!
5356
5457All the packages you depend upon. We use exact versions, so your `elm.json` file doubles as a "lock file" that ensures reliable builds.
5558
59+You can use modules from any `"direct"` dependency in your code. Some `"direct"` dependencies have their own dependencies that folks typically do not care about. These are the `"indirect"` dependencies. They are listed explicitly so that (1) builds are reproducible and (2) you can easily review the quantity and quality of dependencies.
60+
5661**Note:** We plan to eventually have a screen in `reactor` that helps add, remove, and upgrade packages. It can sometimes be tricky to keep all of the constraints happy, so we think having a UI will help a lot. If you get into trouble in the meantime, adding things back one-by-one often helps, and I hope you do not get into trouble!
5762
5863<br>