@sap-ux/odata-service-writer
TypeScript icon, indicating that this package has built-in type declarations

0.23.2 • Public • Published

@sap-ux/odata-service-writer

Writes the odata service related file updates to an existing UI5 project specified by the base path.

Installation

Npm npm install --save @sap-ux/odata-service-writer

Yarn yarn add @sap-ux/odata-service-writer

Pnpm pnpm add @sap-ux/odata-service-writer

Usage

import { OdataVersion, OdataService, generate } from '@sap-ux/odata-service-writer';
import { create, Editor } from 'mem-fs-editor';
import { create as createStorage } from 'mem-fs';

...

fs = create(createStorage()); // Or use fs from Yeoman

 const config:  OdataService = {
            url: 'http://localhost',
            path: '/sap/odata/testme',
            version: OdataVersion.v4,
            destination: {
                name: 'test'
            }
        };
const testDir = '/tmp';

await generate(testDir, config, fs);
        

Keywords

SAP Fiori Freestyle

Readme

Keywords

none

Package Sidebar

Install

npm i @sap-ux/odata-service-writer

Weekly Downloads

313

Version

0.23.2

License

Apache-2.0

Unpacked Size

49.3 kB

Total Files

22

Last publish

Collaborators

  • sap_extncrepos
  • kranthie.sap
  • tqueck