@amag-ch/sap_cap_common_sdk
v0.2.2
Published
Adjuts @sap/cds-dk capabilities
Downloads
6
Readme
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