diff --git a/packages/create-nx-workspace/bin/create-nx-workspace.ts b/packages/create-nx-workspace/bin/create-nx-workspace.ts index 1d9d7a3127..c7b9f748b5 100644 --- a/packages/create-nx-workspace/bin/create-nx-workspace.ts +++ b/packages/create-nx-workspace/bin/create-nx-workspace.ts @@ -64,8 +64,9 @@ determineWorkspaceName(parsedArgs).then(name => { return determineCli(preset, parsedArgs).then(cli => { const tmpDir = createSandbox(packageManager, cli); createApp(tmpDir, cli, parsedArgs, name, preset, appName, style); - showNxWarning(name); showCliWarning(preset, parsedArgs); + showNxWarning(name); + pointToTutorial(preset); }); }); }); @@ -417,3 +418,25 @@ function showCliWarning(preset: string, parsedArgs: any) { } } } + +function pointToTutorial(preset: string) { + if (preset === 'react' || preset === 'react-express') { + output.addVerticalSeparator(); + output.note({ + title: `First time using Nx? Check out this interactive Nx tutorial.`, + bodyLines: [`https://nx.dev/react/tutorial/01-create-application`] + }); + } else if (preset === 'angular' || preset === 'angular-nest') { + output.addVerticalSeparator(); + output.note({ + title: `First time using Nx? Check out this interactive Nx tutorial.`, + bodyLines: [`https://nx.dev/angular/tutorial/01-create-application`] + }); + } else if (preset === 'web-components') { + output.addVerticalSeparator(); + output.note({ + title: `First time using Nx? Check out this interactive Nx tutorial.`, + bodyLines: [`https://nx.dev/web/tutorial/01-create-application`] + }); + } +}