Migrate off the deprecated @angular/animations package
Recipe ID
org.openrewrite.node.migrate.angular-animations.migrate-angular-animationsArtifact@openrewrite/recipes-nodejsRemoves the animation providers and the @angular/animations dependency from applications that no longer use the legacy animation engine, and marks the triggers, AnimationBuilder uses and noop providers that need a manual move to native CSS animations with animate.enter/animate.leave.
Composite recipeangularanimationsProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.node.migrate.angular-animations.migrate-angular-animationsIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejsDefinition
This recipe runs the following recipes in order.
- Remove unneeded
@angular/animationsprovidersorg.openrewrite.node.migrate.angular-animations.remove-angular-animations-providers - Find legacy
@angular/animationsusageorg.openrewrite.node.migrate.angular-animations.find-legacy-angular-animations