on master help sign in
Update style of elm.json dependencies
f6ea101Evan Czaplicki
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
10 ],
10 ],
11 "elm-version": "0.19.0",
11 "elm-version": "0.19.0",
12 "dependencies": {
12 "dependencies": {
13+ "direct": {
13− "elm-lang/browser": "1.0.0",
14+ "elm-lang/browser": "1.0.0",
14− "elm-lang/core": "6.0.0",
15+ "elm-lang/core": "6.0.0",
15− "elm-lang/html": "3.0.0",
16+ "elm-lang/html": "3.0.0",
16− "elm-lang/json": "1.0.0"
17+ "elm-lang/json": "1.0.0"
17− },
18+ },
18− "test-dependencies": {},
19+ "indirect": {
19− "do-not-edit-this-by-hand": {
20− "transitive-dependencies": {
21 "elm-lang/url": "1.0.0",
20 "elm-lang/url": "1.0.0",
22 "elm-lang/virtual-dom": "3.0.0"
21 "elm-lang/virtual-dom": "3.0.0"
23 }
22 }
23+ },
24+ "test-dependencies": {
25+ "direct": {},
26+ "indirect": {}
24 }
27 }
25}
28}
26```
29```
@@ -53,6 +56,8 @@ The exact version of Elm this builds with. Should be `"0.19.0"` for most people!
53
56
54All the packages you depend upon. We use exact versions, so your `elm.json` file doubles as a "lock file" that ensures reliable builds.
57All the packages you depend upon. We use exact versions, so your `elm.json` file doubles as a "lock file" that ensures reliable builds.
55
58
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+
56**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!
61**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!
57
62
58<br>
63<br>