refactor(misc): merge tutorial and course notes
This commit is contained in:
parent
f43897978c
commit
3160639d2e
@ -81,8 +81,7 @@ determineWorkspaceName(parsedArgs).then(name => {
|
|||||||
createApp(tmpDir, cli, parsedArgs, name, preset, appName, style);
|
createApp(tmpDir, cli, parsedArgs, name, preset, appName, style);
|
||||||
showCliWarning(preset, parsedArgs);
|
showCliWarning(preset, parsedArgs);
|
||||||
showNxWarning(name);
|
showNxWarning(name);
|
||||||
pointToTutorial(preset);
|
pointToTutorialAndCourse(preset);
|
||||||
pointToCourse();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -480,41 +479,49 @@ function showCliWarning(preset: Preset, parsedArgs: yargsParser.Arguments) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function pointToTutorial(preset: Preset) {
|
function pointToTutorialAndCourse(preset: Preset) {
|
||||||
|
const title = `First time using Nx? Check out this interactive Nx tutorial.`;
|
||||||
switch (preset) {
|
switch (preset) {
|
||||||
case Preset.React:
|
case Preset.React:
|
||||||
case Preset.ReactWithExpress:
|
case Preset.ReactWithExpress:
|
||||||
case Preset.NextJs:
|
case Preset.NextJs:
|
||||||
output.addVerticalSeparator();
|
output.addVerticalSeparator();
|
||||||
output.note({
|
output.note({
|
||||||
title: `First time using Nx? Check out this interactive Nx tutorial.`,
|
title: title,
|
||||||
bodyLines: [`https://nx.dev/react/tutorial/01-create-application`]
|
bodyLines: [
|
||||||
|
`https://nx.dev/react/tutorial/01-create-application`,
|
||||||
|
...pointToCourse()
|
||||||
|
]
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case Preset.Angular:
|
case Preset.Angular:
|
||||||
case Preset.AngularWithNest:
|
case Preset.AngularWithNest:
|
||||||
output.addVerticalSeparator();
|
output.addVerticalSeparator();
|
||||||
output.note({
|
output.note({
|
||||||
title: `First time using Nx? Check out this interactive Nx tutorial.`,
|
title: title,
|
||||||
bodyLines: [`https://nx.dev/angular/tutorial/01-create-application`]
|
bodyLines: [
|
||||||
|
`https://nx.dev/angular/tutorial/01-create-application`,
|
||||||
|
...pointToCourse()
|
||||||
|
]
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case Preset.WebComponents:
|
case Preset.WebComponents:
|
||||||
output.addVerticalSeparator();
|
output.addVerticalSeparator();
|
||||||
output.note({
|
output.note({
|
||||||
title: `First time using Nx? Check out this interactive Nx tutorial.`,
|
title: title,
|
||||||
bodyLines: [`https://nx.dev/web/tutorial/01-create-application`]
|
bodyLines: [
|
||||||
|
`https://nx.dev/web/tutorial/01-create-application`,
|
||||||
|
...pointToCourse()
|
||||||
|
]
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function pointToCourse(): void {
|
function pointToCourse(): string[] {
|
||||||
output.addVerticalSeparator();
|
return [
|
||||||
output.note({
|
``,
|
||||||
title: `Prefer watching videos? We made en entire course for Nx available on YouTube.`,
|
`Prefer watching videos? Check out this free Nx course on YouTube.`,
|
||||||
bodyLines: [
|
`https://www.youtube.com/watch?v=2mYLe9Kp9VM&list=PLakNactNC1dH38AfqmwabvOszDmKriGco`
|
||||||
`https://www.youtube.com/watch?v=2mYLe9Kp9VM&list=PLakNactNC1dH38AfqmwabvOszDmKriGco`
|
];
|
||||||
]
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user