Adjuts @sap/cds-dk capabilities


Adjuts @sap/cds-dk capabilities
Using npm:
``bash`
$ npm install @amag-ch/sap_cap_common_sdk --save-dev
Using yarn:
`bash`
$ yarn add @amag-ch/sap_cap_common_sdk --dev
Assuming that global cds-dk is installed
`bash`
$ 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)
`bash`
$ npm i
$ npm start
Add stuff from our templates
`bash`
$ 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
`bash`
$ npm run build
And find your deployment.mtar
Same stuff but with scripts: npm run sample + npm run test`