@sap-ux/ui5-config
TypeScript icon, indicating that this package has built-in type declarations

0.22.4 • Public • Published

@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

// generate an empty instance
const ui5Config = await UI5Config.newInstance('');

// set the UI5 framework with a specific version
ui5Config.addUI5Framework('SAPUI5', '1.64.0', []);

// create the file
fs.write('./ui5.yaml', ui5Config.toString());

Add a middleware to an existing file

// load a config from the filesytem
const ui5Config = await UI5Config.newInstance(fs.read('./ui5.yaml'));

// add a middlewre
ui5Config.addFioriToolsAppReloadMiddleware();

// write the changes back to the filestystem
fs.write('./ui5.yaml', ui5Config.toString());

See more example in /test/index.test.ts

Keywords

SAP Fiori freestyle

Readme

Keywords

none

Package Sidebar

Install

npm i @sap-ux/ui5-config

Weekly Downloads

32,179

Version

0.22.4

License

Apache-2.0

Unpacked Size

59.2 kB

Total Files

21

Last publish

Collaborators

  • sap_extncrepos
  • kranthie.sap
  • tqueck