docs(core): add migration guide links to schematics (#33258)

Angular v9 schematics should print out a link to the migration
guide associated with each schematic. This way, users have an
easy way to find more information about the automatic code
transformations they will see with `ng update`.

PR Close #33258
This commit is contained in:
Kara Erickson
2019-10-18 14:47:53 -07:00
committed by Matias Niemelä
parent 32b042014d
commit f289411fa9
5 changed files with 22 additions and 2 deletions

View File

@ -24,6 +24,10 @@ export default function(): Rule {
const failures: string[] = [];
ctx.logger.info('------ Missing @Injectable migration ------');
ctx.logger.info('In Angular 9, enforcement of @Injectable decorators for DI is a bit ');
ctx.logger.info('stricter. Read more about this in the dedicated guide: ');
ctx.logger.info('https://v9.angular.io/guide/migration-injectable');
if (!buildPaths.length && !testPaths.length) {
throw new SchematicsException(
'Could not find any tsconfig file. Cannot add the "@Injectable" decorator to providers ' +