@sap-ux/ui5-config
Utility module to create and update UI5 tooling configuration files (ui5*.yaml
) with helper methods specifically for Fiori tools middlewares.
Installation
Npm
npm install --save @sap-ux/ui5-config
Yarn
yarn add @sap-ux/ui5-config
Pnpm
pnpm add @sap-ux/ui5-config
Usage
Create a new config file
const ui5Config = await UI5Config.newInstance('');
ui5Config.addUI5Framework('SAPUI5', '1.64.0', []);
fs.write('./ui5.yaml', ui5Config.toString());
Add a middleware to an existing file
const ui5Config = await UI5Config.newInstance(fs.read('./ui5.yaml'));
ui5Config.addFioriToolsAppReloadMiddleware();
fs.write('./ui5.yaml', ui5Config.toString());
See more example in /test/index.test.ts
Keywords
SAP Fiori freestyle