File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 77 */
88
99import { Rule } from '@angular-devkit/schematics' ;
10+ import { green , yellow } from 'chalk' ;
1011import { TargetVersion } from './target-version' ;
1112import { cdkUpgradeData } from './upgrade-data' ;
1213import { createUpgradeRule } from './upgrade-rules' ;
@@ -36,7 +37,11 @@ export function updateToV7(): Rule {
3637
3738/** Post-update schematic to be called when update is finished. */
3839export function postUpdate ( ) : Rule {
39- return ( ) => console . log (
40- '\nComplete! Please check the output above for any issues that were detected but could not' +
41- ' be automatically fixed.' ) ;
40+ return ( ) => {
41+ console . log ( ) ;
42+ console . log ( green ( ' ✓ Angular CDK update complete' ) ) ;
43+ console . log ( ) ;
44+ console . log ( yellow ( ' ⚠ Please check the output above for any issues that were detected ' +
45+ 'but could not be automatically fixed.' ) ) ;
46+ } ;
4247}
Original file line number Diff line number Diff line change 88
99import { Rule } from '@angular-devkit/schematics' ;
1010import { TargetVersion , createUpgradeRule , UpgradeTSLintConfig } from '@angular/cdk/schematics' ;
11+ import { green , yellow } from 'chalk' ;
1112import { sync as globSync } from 'glob' ;
1213import { materialUpgradeData } from './upgrade-data' ;
1314
@@ -47,7 +48,11 @@ export function updateToV7(): Rule {
4748
4849/** Post-update schematic to be called when update is finished. */
4950export function postUpdate ( ) : Rule {
50- return ( ) => console . log (
51- '\nComplete! Please check the output above for any issues that were detected but could not' +
52- ' be automatically fixed.' ) ;
51+ return ( ) => {
52+ console . log ( ) ;
53+ console . log ( green ( ' ✓ Angular Material update complete' ) ) ;
54+ console . log ( ) ;
55+ console . log ( yellow ( ' ⚠ Please check the output above for any issues that were detected ' +
56+ 'but could not be automatically fixed.' ) ) ;
57+ } ;
5358}
You can’t perform that action at this time.
0 commit comments