@sap-ux/fe-fpm-writer
Generates elements defined in the Fiori elements for OData v4 flexible programming model into Fiori elements applications
Installation
Npm
npm install --save @sap-ux/fe-fpm-writer
Yarn
yarn add @sap-ux/fe-fpm-writer
Pnpm
pnpm add @sap-ux/fe-fpm-writer
Usage
import { generate } from '@sap-ux/fe-fpm-writer';
import { join } from 'path';
const projectDir = join(__dirname, 'test/test-input/basic-lrop');
const fs = await generateCustomPage(
targetPath,
{
name: 'MyCustomPage',
entity: 'Booking',
navigation: {
sourceEntity: 'Travel',
sourcePage: 'TravelObjectPage',
navEntity: '_Booking'
}
});
fs.commit();
See more complex example in /test/integration/index.test.ts
Keywords
SAP Fiori elements