Getting started
Table of Contents
Installation and Usage
Documentation
Fiori annotations
Installation and Usage
github
Do not add direct dependency to cdsv's github project!
Snapshots/Milestones/Releases
Configure Nexus registry:
npm config set registry "http://nexus.wdf.sap.corp:8081/nexus/content/groups/build.snapshots.npm"
npm config set registry "http://nexus.wdf.sap.corp:8081/nexus/content/groups/build.milestones.npm"
npm config set registry "http://nexus.wdf.sap.corp:8081/nexus/content/groups/build.releases.npm"
Install via npm:
npm install "@sap/cds-compiler"
Or maintain your package.json dependencies as follows:
"dependencies": {
"@sap/cds-compiler": "latest"
}
Command Invocation
The compiler with its options is invoked like any other npm/Unix command:
cdsc [options] <file...>
See cdsc --help
for the options.
The exit code is similar to grep
and other commands:
0
: successful compilation1
: compiled with error (the command invocation itself is ok)2
: commmand invocation error (invalid options, repeated file name)
Documentation
See https://github.wdf.sap.corp/pages/cap/CDS.