UNPKG

@nx/angular

Version:

The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypre

24 lines 1.42 kB
import type { ProjectConfiguration, TargetConfiguration, Tree } from '@nx/devkit'; import type { Logger } from '../utilities/logger'; import type { ProjectMigrationInfo, ValidationResult } from '../utilities/types'; export declare abstract class Migrator { protected readonly tree: Tree; protected projectConfig: ProjectConfiguration; protected readonly logger: Logger; protected project: ProjectMigrationInfo; protected readonly originalProjectConfig: ProjectConfiguration; constructor(tree: Tree, projectConfig: ProjectConfiguration, logger: Logger); abstract migrate(): Promise<void> | void; abstract validate(): ValidationResult; protected convertAsset(asset: string | any): string | any; protected convertRootPath(originalPath: string): string; protected convertSourceRootPath(originalPath: string): string; protected moveFile(from: string, to: string, required?: boolean): void; protected moveFilePathsFromTargetToProjectRoot(target: TargetConfiguration, options: string[]): void; protected moveProjectRootFile(filePath: string, isRequired?: boolean): void; protected updateCacheableOperations(targetNames: string[]): void; protected updateTsConfigFile(tsConfigPath: string, rootTsConfigFile: string, projectOffsetFromRoot: string): void; private getTargetValuesForOption; private getValueForOption; } //# sourceMappingURL=migrator.d.ts.map