From bf4f19120b3cdecb015a614dffcd7c159b22805c Mon Sep 17 00:00:00 2001 From: Izaak Weiss Date: Mon, 6 Jun 2022 09:56:43 -0600 Subject: [PATCH] Add sentence clarifying elm init behavior Some `init` commands in various language ecosystems create the project directory; some don't. If you're familiar with a language that does create a directory (e.g. rust/cargo), then it might not be obvious that `elm init` doesn't. --- book/install/elm.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/book/install/elm.md b/book/install/elm.md index f265f387..b2aa8d62 100644 --- a/book/install/elm.md +++ b/book/install/elm.md @@ -39,6 +39,8 @@ Try running this command to create an `elm.json` file and a `src/` directory: - [`elm.json`](https://github.com/elm/compiler/blob/master/docs/elm.json/application.md) describes your project. - `src/` holds all of your Elm files. +This won't create a new directory for your project, so if you want a directory to hold `elm.json` and `src`, you should create it before running `elm init`. + Now try creating a file called `src/Main.elm` in your editor, and copying in the code from [the buttons example](https://elm-lang.org/examples/buttons).