Skip to content

Commit

Permalink
fix(create-next-app): consolidate messages to "Would you like to use" (
Browse files Browse the repository at this point in the history
…#52011)

This PR ensure that `create-next-app` questions are all formatted the
same way:

```
Would you like to use <feature>?
```

fix NEXT-1333
  • Loading branch information
styfle committed Jun 30, 2023
1 parent d443778 commit 97461f0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions docs/01-getting-started/01-installation.mdx
Expand Up @@ -27,11 +27,11 @@ On installation, you'll see the following prompts:

```txt filename="Terminal"
What is your project named? my-app
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 use TypeScript? No / Yes
Would you like to use ESLint? No / Yes
Would you like to use Tailwind CSS? No / Yes
Would you like to use `src/` directory? No / Yes
Would you like to use App Router? (recommended) No / Yes
Would you like to customize the default import alias? No / Yes
```

Expand Down
10 changes: 5 additions & 5 deletions docs/02-app/02-api-reference/06-create-next-app.mdx
Expand Up @@ -23,11 +23,11 @@ You will then be asked the following prompts:

```bash filename="Terminal"
What is your project named? my-app
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 use TypeScript? No / Yes
Would you like to use ESLint? No / Yes
Would you like to use Tailwind CSS? No / Yes
Would you like to use `src/` directory? No / Yes
Would you like to use App Router? (recommended) No / Yes
Would you like to customize the default import alias? No / Yes
```

Expand Down
2 changes: 1 addition & 1 deletion packages/create-next-app/README.md
Expand Up @@ -18,7 +18,7 @@ You will be asked for the name of your project, and then whether you want to
create a TypeScript project:

```bash
✔ Would you like to use TypeScript with this project? … No / Yes
✔ Would you like to use TypeScript? … No / Yes
```

Select **Yes** to install the necessary types/dependencies and create a new TS project.
Expand Down
10 changes: 5 additions & 5 deletions packages/create-next-app/index.ts
Expand Up @@ -258,7 +258,7 @@ async function run(): Promise<void> {
{
type: 'toggle',
name: 'typescript',
message: `Would you like to use ${styledTypeScript} with this project?`,
message: `Would you like to use ${styledTypeScript}?`,
initial: getPrefOrDefault('typescript'),
active: 'Yes',
inactive: 'No',
Expand Down Expand Up @@ -295,7 +295,7 @@ async function run(): Promise<void> {
onState: onPromptState,
type: 'toggle',
name: 'eslint',
message: `Would you like to use ${styledEslint} with this project?`,
message: `Would you like to use ${styledEslint}?`,
initial: getPrefOrDefault('eslint'),
active: 'Yes',
inactive: 'No',
Expand All @@ -317,7 +317,7 @@ async function run(): Promise<void> {
onState: onPromptState,
type: 'toggle',
name: 'tailwind',
message: `Would you like to use ${tw} with this project?`,
message: `Would you like to use ${tw}?`,
initial: getPrefOrDefault('tailwind'),
active: 'Yes',
inactive: 'No',
Expand All @@ -339,7 +339,7 @@ async function run(): Promise<void> {
onState: onPromptState,
type: 'toggle',
name: 'srcDir',
message: `Would you like to use ${styledSrcDir} with this project?`,
message: `Would you like to use ${styledSrcDir}?`,
initial: getPrefOrDefault('srcDir'),
active: 'Yes',
inactive: 'No',
Expand All @@ -358,7 +358,7 @@ async function run(): Promise<void> {
onState: onPromptState,
type: 'toggle',
name: 'appRouter',
message: `Use ${styledAppDir} (recommended)?`,
message: `Would you like to use ${styledAppDir}? (recommended)`,
initial: true,
active: 'Yes',
inactive: 'No',
Expand Down

1 comment on commit 97461f0

@Ameralameri
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Please sign in to comment.