ReadonlycategoryRule category for grouping.
ReadonlydescriptionRule description.
ReadonlyidUnique rule identifier. Format: "plugin-name:rule-name"
ReadonlynameHuman-readable rule name.
ReadonlytagsTags for filtering and search.
Transform a source file by migrating Angular artifacts to standalone.
Transform context with file, project, and API access
Promise resolving to the transformation result
This method implements the TransformRule.transform contract. It delegates to the StandaloneMigrationOrchestrator for the actual transformation work, then packages the result into a TransformResult.
The method:
The transform result includes:
modified: Whether the file was changedmessage: A human-readable summaryfilePath: The path to the transformed fileruleId: This rule's identifier
Transform rule for migrating Angular artifacts to standalone architecture.
Remarks
This rule implements the TransformRule interface and serves as the bridge between the Angular Modernizer's plugin system and the standalone migration orchestrator. It follows the "Thin Rule, Thick Orchestrator" pattern where the rule handles protocol compliance while delegating all business logic to the StandaloneMigrationOrchestrator.
What It Does
The rule orchestrates the migration of:
standalone: trueand analyzes template dependenciesstandalone: truewith empty importsstandalone: true(no imports needed)Example Usage
This rule is typically not used directly, but rather accessed through the StandalonePlugin:
See