Commit 2f15784 1 parent 992bcfb commit 2f15784 Copy full SHA for 2f15784
File tree 2 files changed +16
-6
lines changed
2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { Rule } from '@angular-devkit/schematics' ;
10
+ import { green , yellow } from 'chalk' ;
10
11
import { TargetVersion } from './target-version' ;
11
12
import { cdkUpgradeData } from './upgrade-data' ;
12
13
import { createUpgradeRule } from './upgrade-rules' ;
@@ -36,7 +37,11 @@ export function updateToV7(): Rule {
36
37
37
38
/** Post-update schematic to be called when update is finished. */
38
39
export 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
+ } ;
42
47
}
Original file line number Diff line number Diff line change 8
8
9
9
import { Rule } from '@angular-devkit/schematics' ;
10
10
import { TargetVersion , createUpgradeRule , UpgradeTSLintConfig } from '@angular/cdk/schematics' ;
11
+ import { green , yellow } from 'chalk' ;
11
12
import { sync as globSync } from 'glob' ;
12
13
import { materialUpgradeData } from './upgrade-data' ;
13
14
@@ -47,7 +48,11 @@ export function updateToV7(): Rule {
47
48
48
49
/** Post-update schematic to be called when update is finished. */
49
50
export 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
+ } ;
53
58
}
You can’t perform that action at this time.
0 commit comments