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
Unfortunately npm does not support snapshots via nexus.
The only possibility is to download manually a snapshot and install it.
Milestones/Releases
Configure Nexus milestones registry:
npm config set registry "http://nexus.wdf.sap.corp:8081/nexus/content/groups/build.milestones.npm"
or releases registry:
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:
package.json
"dependencies": {
"@sap/cds-compiler": "*"
}
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.