Unverified Commit 97461f0b authored by Steven's avatar Steven Committed by GitHub

fix(create-next-app): consolidate messages to "Would you like to use" (#52011)

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

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

fix NEXT-1333
parent d4437781
...@@ -27,11 +27,11 @@ On installation, you'll see the following prompts: ...@@ -27,11 +27,11 @@ On installation, you'll see the following prompts:
```txt filename="Terminal" ```txt filename="Terminal"
What is your project named? my-app What is your project named? my-app
Would you like to use TypeScript with this project? No / Yes Would you like to use TypeScript? No / Yes
Would you like to use ESLint with this project? No / Yes Would you like to use ESLint? No / Yes
Would you like to use Tailwind CSS with this project? No / Yes Would you like to use Tailwind CSS? No / Yes
Would you like to use `src/` directory with this project? No / Yes Would you like to use `src/` directory? No / Yes
Use App Router (recommended)? No / Yes Would you like to use App Router? (recommended) No / Yes
Would you like to customize the default import alias? No / Yes Would you like to customize the default import alias? No / Yes
``` ```
......
...@@ -23,11 +23,11 @@ You will then be asked the following prompts: ...@@ -23,11 +23,11 @@ You will then be asked the following prompts:
```bash filename="Terminal" ```bash filename="Terminal"
What is your project named? my-app What is your project named? my-app
Would you like to use TypeScript with this project? No / Yes Would you like to use TypeScript? No / Yes
Would you like to use ESLint with this project? No / Yes Would you like to use ESLint? No / Yes
Would you like to use Tailwind CSS with this project? No / Yes Would you like to use Tailwind CSS? No / Yes
Would you like to use `src/` directory with this project? No / Yes Would you like to use `src/` directory? No / Yes
Use App Router (recommended)? No / Yes Would you like to use App Router? (recommended) No / Yes
Would you like to customize the default import alias? No / Yes Would you like to customize the default import alias? No / Yes
``` ```
......
...@@ -18,7 +18,7 @@ You will be asked for the name of your project, and then whether you want to ...@@ -18,7 +18,7 @@ You will be asked for the name of your project, and then whether you want to
create a TypeScript project: create a TypeScript project:
```bash ```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. Select **Yes** to install the necessary types/dependencies and create a new TS project.
......
...@@ -258,7 +258,7 @@ async function run(): Promise<void> { ...@@ -258,7 +258,7 @@ async function run(): Promise<void> {
{ {
type: 'toggle', type: 'toggle',
name: 'typescript', name: 'typescript',
message: `Would you like to use ${styledTypeScript} with this project?`, message: `Would you like to use ${styledTypeScript}?`,
initial: getPrefOrDefault('typescript'), initial: getPrefOrDefault('typescript'),
active: 'Yes', active: 'Yes',
inactive: 'No', inactive: 'No',
...@@ -295,7 +295,7 @@ async function run(): Promise<void> { ...@@ -295,7 +295,7 @@ async function run(): Promise<void> {
onState: onPromptState, onState: onPromptState,
type: 'toggle', type: 'toggle',
name: 'eslint', name: 'eslint',
message: `Would you like to use ${styledEslint} with this project?`, message: `Would you like to use ${styledEslint}?`,
initial: getPrefOrDefault('eslint'), initial: getPrefOrDefault('eslint'),
active: 'Yes', active: 'Yes',
inactive: 'No', inactive: 'No',
...@@ -317,7 +317,7 @@ async function run(): Promise<void> { ...@@ -317,7 +317,7 @@ async function run(): Promise<void> {
onState: onPromptState, onState: onPromptState,
type: 'toggle', type: 'toggle',
name: 'tailwind', name: 'tailwind',
message: `Would you like to use ${tw} with this project?`, message: `Would you like to use ${tw}?`,
initial: getPrefOrDefault('tailwind'), initial: getPrefOrDefault('tailwind'),
active: 'Yes', active: 'Yes',
inactive: 'No', inactive: 'No',
...@@ -339,7 +339,7 @@ async function run(): Promise<void> { ...@@ -339,7 +339,7 @@ async function run(): Promise<void> {
onState: onPromptState, onState: onPromptState,
type: 'toggle', type: 'toggle',
name: 'srcDir', name: 'srcDir',
message: `Would you like to use ${styledSrcDir} with this project?`, message: `Would you like to use ${styledSrcDir}?`,
initial: getPrefOrDefault('srcDir'), initial: getPrefOrDefault('srcDir'),
active: 'Yes', active: 'Yes',
inactive: 'No', inactive: 'No',
...@@ -358,7 +358,7 @@ async function run(): Promise<void> { ...@@ -358,7 +358,7 @@ async function run(): Promise<void> {
onState: onPromptState, onState: onPromptState,
type: 'toggle', type: 'toggle',
name: 'appRouter', name: 'appRouter',
message: `Use ${styledAppDir} (recommended)?`, message: `Would you like to use ${styledAppDir}? (recommended)`,
initial: true, initial: true,
active: 'Yes', active: 'Yes',
inactive: 'No', inactive: 'No',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment