@amag-ch/sap_cap_common_sdk

0.2.2 • Public • Published

npm version npm downloads

Adjuts @sap/cds-dk capabilities

Table of Contents

Installing

Using npm:

$ npm install @amag-ch/sap_cap_common_sdk --save-dev

Using yarn:

$ yarn add @amag-ch/sap_cap_common_sdk --dev

WiP Testing (before publish)

Assuming that global cds-dk is installed

$ cd test
$ cds init sample 
$ cd sample
$ cds add sample

Within sample proj:

Add "@amag-ch/sap_cap_common_sdk" : "file:../../" to package.json "devDependencies"

Check that everyting works (yarn does not support workspaces in public projects, so we go with npm here)

$ npm i
$ npm start

Add stuff from our templates

$ cds add amag-mta
$ cds add amag-auth
$ cds add amag-messaging
$ cds add amag-destination

Then add "build": "mbt build -p=cf --strict=true --source=. --target=. --mtar deployment.mtar && rm -rf gen" to package.json "scripts"

Add "workspaces":[] to package.json to make "yarn workspaces run build" work in our mta "before-all"

Do touch yarn.lock to have buildable project

Finally, run

$ npm run build

And find your deployment.mtar

Same stuff but with scripts: npm run sample + npm run test

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @amag-ch/sap_cap_common_sdk

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

25.1 kB

Total Files

29

Last publish

Collaborators

  • thju-amag-ch
  • integration-amag-ch