npm.io
1.3.25 • Published 1 week ago

@sap-ux/fe-fpm-writer

Licence
Apache-2.0
Version
1.3.25
Deps
14
Size
465 kB
Vulns
0
Weekly
0
Stars
159

Changelog Github repo

@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: {
            sourcePage: 'TravelObjectPage',
            navEntity: '_Booking'
        }
});

fs.commit();

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

Keywords

SAP Fiori elements