0.2.2 • Published 1 year ago
@amag-ch/sap_cap_common_sdk v0.2.2
Adjuts @sap/cds-dk capabilities
Table of Contents
Installing
Using npm:
$ npm install @amag-ch/sap_cap_common_sdk --save-devUsing yarn:
$ yarn add @amag-ch/sap_cap_common_sdk --devWiP Testing (before publish)
Assuming that global cds-dk is installed
$ cd test
$ cds init sample
$ cd sample
$ cds add sampleWithin 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 startAdd stuff from our templates
$ cds add amag-mta
$ cds add amag-auth
$ cds add amag-messaging
$ cds add amag-destinationThen 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 buildAnd find your deployment.mtar
Same stuff but with scripts: npm run sample + npm run test