@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
27 lines • 1.29 kB
TypeScript
import type { FioriGeneratorOptions, Floorplan } from '@sap/ux-generator-common';
import type { Answers, Question } from 'yeoman-generator';
import type { AppWizard } from '@sap-devx/yeoman-ui-types';
/**
* Get the floorplan questions.
* The applicationType prompt will only be shown when necessary. i.e. When there are more than 1 category of floorplan
*
* @param generatorVersion, the version to appear in the prompt hint
* @param floorplans, floorplans which will be prompted, or all if undefined
* @returns
*/
export declare function getFloorplanPrompts(generatorVersion: string, floorplans: Floorplan[] | undefined): Question<Answers>;
/**
* Get workspace folders from vscode object, set cwd if CLI
* @param vscode vscode object passed to the generator
* @returns array of folders/paths
*/
export declare function getWorkspaceFolders(vscode: any): string[];
/**
* Shows an app wizard (Yeoman UI) message.
*
* @param message the message to display on the navigation footer and the severity to determine the icon, default severity is 'information'
* @param appWizard a reference to the app wizard instance
*
*/
export declare function showWizardMessage(message: FioriGeneratorOptions['wizardMessage'], appWizard: AppWizard): void;
//# sourceMappingURL=utils.d.ts.map