Skip to content

Commit

Permalink
Update create-next-app docs (#50981)
Browse files Browse the repository at this point in the history
### What?

Update the create-next-app prompts and create-next-app --help
documentation
  • Loading branch information
tyler-lutz committed Jun 8, 2023
1 parent 9a08206 commit 3ccbe82
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docs/02-app/02-api-reference/06-create-next-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ You will then be asked the following prompts:

```bash filename="Terminal"
What is your project named? my-app
Would you like to add TypeScript with this project? Y/N
Would you like to use ESLint with this project? Y/N
Would you like to use Tailwind CSS with this project? Y/N
Would you like to use the `src/ directory` with this project? Y/N
What import alias would you like configured? `@/*`
Would you like to use TypeScript with this project? No / Yes
Would you like to use ESLint with this project? No / Yes
Would you like to use Tailwind CSS with this project? No / Yes
Would you like to use `src/` directory with this project? No / Yes
Use App Router (recommended)? No / Yes
Would you like to customize the default import alias? No / Yes
```

Once you've answered the prompts, a new project will be created with the correct configuration depending on your answers.
Expand Down Expand Up @@ -59,6 +60,10 @@ Options:

Initialize with ESLint config.

--app

Initialize as an App Router project.

--src-dir

Initialize inside a `src/` directory.
Expand All @@ -75,6 +80,10 @@ Options:

Explicitly tell the CLI to bootstrap the app using pnpm

--use-yarn

Explicitly tell the CLI to bootstrap the app using Yarn

-e, --example [name]|[github-url]

An example to bootstrap the app with. You can use an example name
Expand Down

0 comments on commit 3ccbe82

Please sign in to comment.