Skip to content

Commit 6edb42f

Browse files
authored
build: set up schematics for version 15 (#25028)
Prepares the schematics infrastructure for the next major version.
1 parent 2740e98 commit 6edb42f

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

src/cdk/schematics/migration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
"description": "Updates the Angular CDK to v14",
4747
"factory": "./ng-update/index#updateToV14"
4848
},
49+
"migration-v15": {
50+
"version": "15.0.0-0",
51+
"description": "Updates the Angular CDK to v15",
52+
"factory": "./ng-update/index#updateToV15"
53+
},
4954
"ng-post-update": {
5055
"description": "Prints out results after ng-update.",
5156
"factory": "./ng-update/index#postUpdate",

src/cdk/schematics/ng-update/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ export function updateToV14(): Rule {
104104
);
105105
}
106106

107+
/** Entry point for the migration schematics with target of Angular CDK 15.0.0 */
108+
export function updateToV15(): Rule {
109+
return createMigrationSchematicRule(
110+
TargetVersion.V15,
111+
cdkMigrations,
112+
cdkUpgradeData,
113+
onMigrationComplete,
114+
);
115+
}
116+
107117
/** Function that will be called when the migration completed. */
108118
function onMigrationComplete(
109119
context: SchematicContext,

src/cdk/schematics/update-tool/target-version.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export enum TargetVersion {
1919
V12 = 'version 12',
2020
V13 = 'version 13',
2121
V14 = 'version 14',
22+
V15 = 'version 15',
2223
}
2324

2425
/**

src/material/schematics/migration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
"description": "Updates the Angular Material to v14",
4747
"factory": "./ng-update/index#updateToV14"
4848
},
49+
"migration-v15": {
50+
"version": "15.0.0-0",
51+
"description": "Updates the Angular Material to v15",
52+
"factory": "./ng-update/index#updateToV15"
53+
},
4954
"ng-post-update": {
5055
"description": "Prints out results after ng-update.",
5156
"factory": "./ng-update/index#postUpdate",

src/material/schematics/ng-update/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ export function updateToV14(): Rule {
126126
);
127127
}
128128

129+
/** Entry point for the migration schematics with target of Angular Material v15 */
130+
export function updateToV15(): Rule {
131+
return createMigrationSchematicRule(
132+
TargetVersion.V15,
133+
materialMigrations,
134+
materialUpgradeData,
135+
onMigrationComplete,
136+
);
137+
}
138+
129139
/** Function that will be called when the migration completed. */
130140
function onMigrationComplete(
131141
context: SchematicContext,

0 commit comments

Comments
 (0)