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

0.25.0 • 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

21,903

Version

0.25.0

License

Apache-2.0

Unpacked Size

80.8 kB

Total Files

23

Last publish

Collaborators

  • tqueck
  • kranthie.sap
  • sap_extncrepos