@ui5/task-adaptation
Version:
Custom task for ui5-builder which allows building UI5 Flexibility Adaptation Projects for SAP BTP, Cloud Foundry environment
38 lines (37 loc) • 1.33 kB
TypeScript
import AppVariant from "./appVariantManager.js";
import IProcessor from "./processors/processor.js";
export interface IBaseAppResources {
resources: any[];
manifestInfo: IManifestInfo;
}
export interface IManifestIdVersion {
id: string;
version: string;
}
export interface IManifestInfo extends IManifestIdVersion {
i18nPath: string;
}
/**
* Processes files to replace .js file content with corresponding -dbg.js
* content and remove -dbg.js
* @param files - Map of all files
* @returns Map with .js files replaced by -dbg.js content where applicable
*/
export declare function preProcessFiles(files: ReadonlyMap<string, string>): Map<string, string>;
export default class BaseApp {
readonly id: string;
readonly version: string;
readonly i18nPath: string;
readonly files: ReadonlyMap<string, string>;
static fromFiles(files: ReadonlyMap<string, string>): BaseApp;
private constructor();
adapt(appVariant: AppVariant, processor: IProcessor): Promise<ReadonlyMap<string, string>>;
private updateComponentName;
private updateAdaptationProperties;
private extractI18nPathFromManifest;
private VALIDATION_RULES;
private validateProperty;
private applyDescriptorChanges;
private fillAppVariantIdHierarchy;
private adjustAddNewModelEnhanceWith;
}