cleanup(misc): do not show links to video courses after create-nx-workspace

This commit is contained in:
Victor Savkin 2022-09-29 14:55:18 -04:00
parent 759f7ced86
commit fbe38865c1

View File

@ -1019,10 +1019,7 @@ function pointToTutorialAndCourse(preset: Preset) {
output.addVerticalSeparator();
output.note({
title,
bodyLines: [
`https://nx.dev/react-tutorial/01-create-application`,
...pointToFreeCourseOnEgghead(),
],
bodyLines: [`https://nx.dev/react-tutorial/01-create-application`],
});
break;
case Preset.Angular:
@ -1030,41 +1027,19 @@ function pointToTutorialAndCourse(preset: Preset) {
output.addVerticalSeparator();
output.note({
title,
bodyLines: [
`https://nx.dev/angular-tutorial/01-create-application`,
...pointToFreeCourseOnYoutube(),
],
bodyLines: [`https://nx.dev/angular-tutorial/01-create-application`],
});
break;
case Preset.Nest:
output.addVerticalSeparator();
output.note({
title,
bodyLines: [
`https://nx.dev/node-tutorial/01-create-application`,
...pointToFreeCourseOnYoutube(),
],
bodyLines: [`https://nx.dev/node-tutorial/01-create-application`],
});
break;
}
}
function pointToFreeCourseOnYoutube(): string[] {
return [
``,
`Prefer watching videos? Check out this free Nx course on YouTube.`,
`https://www.youtube.com/watch?v=2mYLe9Kp9VM&list=PLakNactNC1dH38AfqmwabvOszDmKriGco`,
];
}
function pointToFreeCourseOnEgghead(): string[] {
return [
``,
`Prefer watching videos? Check out this free Nx course on Egghead.io.`,
`https://egghead.io/playlists/scale-react-development-with-nx-4038`,
];
}
/**
* We are incrementing a counter to track how often create-nx-workspace is used in CI
* vs dev environments. No personal information is collected.