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

0.6.4 • Public • Published

@sap-ux/mockserver-config-writer

Adds or removes configuration for mockserver module @sap-ux/ui5-middleware-fe-mockserver to an SAP UX project.

Installation

Npm npm install --save @sap-ux/mockserver-config-writer

Yarn yarn add @sap-ux/mockserver-config-writer

Pnpm pnpm add @sap-ux/mockserver-config-writer

Usage

import { generateMockserverConfig } from '@sap-ux/mockserver-config-writer';
import { join } from 'path';

const basePath = join(__dirname, 'test/fixtures/bare-minimum');
const fs = await generateMockserverConfig(
    basePath,
    {
        webappPath: join(basePath, 'webapp'),
});

fs.commit();

See more complex example in /test/unit

Keywords

SAP Fiori elements SAP Fiori - UI5 middleware for the Fiori elements mock server

Readme

Keywords

none

Package Sidebar

Install

npm i @sap-ux/mockserver-config-writer

Weekly Downloads

311

Version

0.6.4

License

Apache-2.0

Unpacked Size

40.1 kB

Total Files

20

Last publish

Collaborators

  • sap_extncrepos
  • kranthie.sap
  • tqueck