From 9658fb1ad6a0ce94fd3ce0588a7238b499155f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Thu, 13 Apr 2023 14:57:05 +0100 Subject: [PATCH] docs(core): improve nx init description (#16245) --- docs/generated/cli/init.md | 4 ++-- docs/generated/packages/nx/documents/init.md | 4 ++-- packages/nx/src/command-line/nx-commands.ts | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/generated/cli/init.md b/docs/generated/cli/init.md index 88b941ff125c2..cccde6f4946e6 100644 --- a/docs/generated/cli/init.md +++ b/docs/generated/cli/init.md @@ -1,11 +1,11 @@ --- title: 'init - CLI command' -description: 'Adds nx.json file and installs nx if not installed already' +description: 'Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up distributed caching. For more info, check https://nx.dev/recipes/adopting-nx.' --- # init -Adds nx.json file and installs nx if not installed already +Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up distributed caching. For more info, check https://nx.dev/recipes/adopting-nx. ## Usage diff --git a/docs/generated/packages/nx/documents/init.md b/docs/generated/packages/nx/documents/init.md index 88b941ff125c2..cccde6f4946e6 100644 --- a/docs/generated/packages/nx/documents/init.md +++ b/docs/generated/packages/nx/documents/init.md @@ -1,11 +1,11 @@ --- title: 'init - CLI command' -description: 'Adds nx.json file and installs nx if not installed already' +description: 'Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up distributed caching. For more info, check https://nx.dev/recipes/adopting-nx.' --- # init -Adds nx.json file and installs nx if not installed already +Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up distributed caching. For more info, check https://nx.dev/recipes/adopting-nx. ## Usage diff --git a/packages/nx/src/command-line/nx-commands.ts b/packages/nx/src/command-line/nx-commands.ts index c6008efc6994d..7cf8508cff668 100644 --- a/packages/nx/src/command-line/nx-commands.ts +++ b/packages/nx/src/command-line/nx-commands.ts @@ -303,7 +303,8 @@ export const commandsObject = yargs }) .command({ command: 'init', - describe: 'Adds nx.json file and installs nx if not installed already', + describe: + 'Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up distributed caching. For more info, check https://nx.dev/recipes/adopting-nx.', builder: (yargs) => withIntegratedOption(yargs), handler: async (args: any) => { await (await import('./init')).initHandler(args);