feat(nx): point to nx tutorial after running create-nx-workspace
This commit is contained in:
parent
e79731b913
commit
b4e25fdd2a
@ -64,8 +64,9 @@ determineWorkspaceName(parsedArgs).then(name => {
|
|||||||
return determineCli(preset, parsedArgs).then(cli => {
|
return determineCli(preset, parsedArgs).then(cli => {
|
||||||
const tmpDir = createSandbox(packageManager, cli);
|
const tmpDir = createSandbox(packageManager, cli);
|
||||||
createApp(tmpDir, cli, parsedArgs, name, preset, appName, style);
|
createApp(tmpDir, cli, parsedArgs, name, preset, appName, style);
|
||||||
showNxWarning(name);
|
|
||||||
showCliWarning(preset, parsedArgs);
|
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`]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user