@sap-ux/mockserver-config-writer
v0.7.0
Published
Add or update configuration for SAP Fiori tools mockserver
Downloads
61,381
Readme
@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