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

0.0.43 • Public • Published

@sap-ux/abap-deploy-config-writer

Easy to use ABAP deployment configuration writer for use within Yeoman generator and other prompting libraries.

Installation

Npm npm install --save @sap-ux/abap-deploy-config-writer

Yarn yarn add @sap-ux/abap-deploy-config-writer

Pnpm pnpm add @sap-ux/abap-deploy-config-writer

Usage

Calling the generate function

import { generate } from '@sap-ux/abap-deploy-config-writer'
import { join } from 'path';
import type { AbapDeployConfig } from '@sap-ux/ui5-config';

const exampleWriter = async () => {

  const abapDeployConfig: AbapDeployConfig[] = [
        {
            target: { url: 'https://example.com', client: '000', scp: false },
            app: { name: 'testapp', package: 'TESTPKG12', description: 'Deployment description', transport: 'TR123' }
        }
    ];

  const projectDir = join(__dirname, 'testapp');
  const fs = await generate(projectDir, abapDeployConfig);
  return new Promise((resolve) => {
      fs.commit(resolve); // When using with Yeoman it handle the fs commit.
  });
}

// Calling the function
await exampleWriter();

Keywords

SAP Reuse Library

Readme

Keywords

none

Package Sidebar

Install

npm i @sap-ux/abap-deploy-config-writer

Weekly Downloads

370

Version

0.0.43

License

Apache-2.0

Unpacked Size

27 kB

Total Files

13

Last publish

Collaborators

  • sap_extncrepos
  • kranthie.sap
  • tqueck