UNPKG

@ui5/task-adaptation

Version:

Custom task for ui5-builder which allows building UI5 Flexibility Adaptation Projects for SAP BTP, Cloud Foundry environment

30 lines (29 loc) 1.33 kB
import { IAppVariantInfo, IProjectOptions } from "./model/types.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; } export default class BaseAppManager { static process(baseAppFiles: Map<string, string>, appVariantInfo: IAppVariantInfo, options: IProjectOptions, processor: IProcessor): Promise<IBaseAppResources>; private static updateAdaptationProperties; static getIdVersion(manifest: any): IManifestIdVersion; static getManifestInfo(manifest: any): IManifestInfo; private static extractI18nPathFromManifest; private static extractI18NFromBundleName; private static extractI18NFromBundleUrl; private static getBaseAppManifest; private static fillAppVariantIdHierarchy; private static VALIDATION_RULES; static validateProperty(value: string, property: string): void; static applyDescriptorChanges(baseAppManifest: any, { layer, changes, id }: IAppVariantInfo): Promise<void>; private static adjustAddNewModelEnhanceWith; static writeToWorkspace(baseAppFiles: Map<string, string>, projectNamespace: string): any[]; }