You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(@angular/cli): Add standalone and zoneless transformations to the modernize tool
- The transformation is now a three-step process guided by the output field.
- A input was added to the tool to specify which step of the transformation to run.
- A output field was added to provide links to relevant migration guides.
- A transformation was added, which provides a documentation link and instructions for the manual migration process.
'Converts the application to use standalone components, directives, and pipes. This is a three-step process. After each step, you should verify that your application builds and runs correctly. Full instructions at https://angular.dev/reference/migrations/standalone',
@@ -77,12 +105,21 @@ export function registerModernizeTool(server: McpServer): void {
77
105
'This tool modernizes Angular code by applying the latest best practices and syntax improvements, ensuring it is idiomatic, readable, and maintainable.\n\n'+
78
106
'</Purpose>\n'+
79
107
'<Use Cases>\n'+
80
-
'- After generating new code: Run this tool immediately after creating new Angular components, directives, or services to ensure they adhere to modern standards.\n'+
81
-
'- On existing code: Apply to existing TypeScript files (.ts) and Angular templates (.ng.html) to update them with the latest features, such as the new built-in control flow syntax.\n\n'+
82
-
'- When the user asks for a specific transformation: When the transformation list is populated, these specific ones will be ran on the inputs.\n'+
108
+
'* After generating new code: Run this tool immediately after creating new Angular components, directives, or services to ensure they adhere to modern standards.\n'+
109
+
'* On existing code: Apply to existing TypeScript files (.ts) and Angular templates (.ng.html) to update them with the latest features, such as the new built-in control flow syntax.\n\n'+
110
+
'* When the user asks for a specific transformation: When the transformation list is populated, these specific ones will be ran on the inputs.\n'+
'The first step of the `standalone` migration has been performed. Please verify that your application builds and runs correctly. Then, run this tool again with `mode: "prune-ng-modules"` to continue.';
200
+
}elseif(mode==='prune-ng-modules'){
201
+
instructions=
202
+
'The second step of the `standalone` migration has been performed. Please verify that your application builds and runs correctly. Then, run this tool again with `mode: "standalone-bootstrap"` to complete the migration.';
203
+
}else{
204
+
instructions='The `standalone` migration has been completed.';
205
+
}
206
+
}elseif(transformation.name==='zoneless'){
207
+
instructions=
208
+
'The `zoneless` migration is a manual process. Please follow the instructions at https://angular.dev/guide/zoneless to complete the migration.';
0 commit comments