@open-rap/cli 0.0.0-bootstrap → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +32 -3
- package/dist/rapt.d.ts +7 -0
- package/dist/rapt.js +14 -0
- package/dist/rapt.js.map +1 -0
- package/package.json +47 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Clément Ringot and contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Open RAP Runtime
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
**Develop, test and deploy your SAP RAP business objects without an SAP system.**
|
|
4
|
+
|
|
5
|
+
`rapt` compiles the sources of a RAP business object in abapGit format — tables, CDS views,
|
|
6
|
+
metadata extensions, behavior definitions, ABAP behavior pools, service definition and binding —
|
|
7
|
+
into a standalone Node.js application: an OData V4 service, the RAP managed runtime running your
|
|
8
|
+
ABAP code, PostgreSQL and an OpenUI5 (Fiori-like) UI. The same sources are imported into SAP with
|
|
9
|
+
abapGit.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install -g @open-rap/cli # or: npx @open-rap/cli <command>
|
|
13
|
+
rapt new my-project Travel --prefix ZRT
|
|
14
|
+
rapt dev my-project # http://localhost:8080/, rebuilt on every save
|
|
15
|
+
rapt launchpad dev launchpad.json # every application of the workspace, behind http://localhost:8090/
|
|
16
|
+
rapt check my-project # diagnostics file:line:column (--json for tools)
|
|
17
|
+
rapt build my-project --out dist # the deployable application
|
|
18
|
+
rapt agent . # MCP server (stdio) of rapt for AI coding agents
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Node.js 22 or later. The package contains everything `rapt dev` needs (OpenUI5, an embedded
|
|
22
|
+
PostgreSQL); no SAP library, only permissive open source licenses. In a CI, without a global
|
|
23
|
+
installation: `npx @open-rap/cli check my-project`, or `@open-rap/cli` as a `devDependency` of
|
|
24
|
+
the project and `npx rapt …`.
|
|
25
|
+
|
|
26
|
+
For AI agents (Claude Code, Cursor…): `claude mcp add rapt -- rapt agent .` gives the agent the
|
|
27
|
+
tools `rapt_check`, `rapt_generate`, `rapt_new_business_object`, `rapt_floorplan`,
|
|
28
|
+
`rapt_abapgit`, `rapt_docs_search` and `rapt_docs_read`. In VS Code, the Open RAP Runtime extension
|
|
29
|
+
contains rapt and registers this server by itself.
|
|
30
|
+
|
|
31
|
+
Documentation and VS Code extension: https://clementringot.github.io/Open-Rap-Runtime/
|
|
32
|
+
|
|
33
|
+
MIT license. Not affiliated with SAP SE; SAP, ABAP and Fiori are trademarks of SAP SE.
|
package/dist/rapt.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* rapt of the @open-rap/cli npm package (decisions D65, D112): the command line of
|
|
4
|
+
* @open-rap/compiler, installed next to @open-rap/runtime and what rapt dev serves
|
|
5
|
+
* (OpenUI5, PGlite, less-openui5), so that `npm install -g @open-rap/cli` gives a complete rapt.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
package/dist/rapt.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* rapt of the @open-rap/cli npm package (decisions D65, D112): the command line of
|
|
4
|
+
* @open-rap/compiler, installed next to @open-rap/runtime and what rapt dev serves
|
|
5
|
+
* (OpenUI5, PGlite, less-openui5), so that `npm install -g @open-rap/cli` gives a complete rapt.
|
|
6
|
+
*/
|
|
7
|
+
import { realpathSync } from "node:fs";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
// The compiler's cli.js runs itself only when it is the invoked script (process.argv[1]): argv[1]
|
|
10
|
+
// is set to this file, so that only the call below runs the command.
|
|
11
|
+
process.argv[1] = realpathSync(fileURLToPath(import.meta.url));
|
|
12
|
+
const { main } = await import("@open-rap/compiler/cli");
|
|
13
|
+
process.exitCode = await main(process.argv.slice(2));
|
|
14
|
+
//# sourceMappingURL=rapt.js.map
|
package/dist/rapt.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rapt.js","sourceRoot":"","sources":["../src/rapt.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,kGAAkG;AAClG,qEAAqE;AACrE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;AACxD,OAAO,CAAC,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-rap/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "rapt, the command line of Open RAP Runtime: compiles SAP RAP sources (abapGit format) into a standalone Node.js OData V4 application, with what rapt dev serves (runtime, OpenUI5, PGlite).",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"license": "MIT",
|
|
7
|
+
"homepage": "https://clementringot.github.io/Open-Rap-Runtime/",
|
|
6
8
|
"repository": {
|
|
7
9
|
"type": "git",
|
|
8
10
|
"url": "git+https://github.com/ClementRingot/Open-RAP-Runtime.git",
|
|
9
11
|
"directory": "packages/cli"
|
|
10
12
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/ClementRingot/Open-RAP-Runtime/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"sap",
|
|
18
|
+
"rap",
|
|
19
|
+
"abap",
|
|
20
|
+
"cds",
|
|
21
|
+
"odata",
|
|
22
|
+
"odata-v4",
|
|
23
|
+
"abapgit",
|
|
24
|
+
"openui5",
|
|
25
|
+
"cli"
|
|
26
|
+
],
|
|
27
|
+
"bin": {
|
|
28
|
+
"rapt": "./dist/rapt.js"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=22"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@electric-sql/pglite": "0.5.16",
|
|
41
|
+
"@openui5/sap.f": "1.136.22",
|
|
42
|
+
"@openui5/sap.m": "1.136.22",
|
|
43
|
+
"@openui5/sap.ui.core": "1.136.22",
|
|
44
|
+
"@openui5/sap.ui.layout": "1.136.22",
|
|
45
|
+
"@openui5/sap.ui.unified": "1.136.22",
|
|
46
|
+
"@openui5/sap.uxap": "1.136.22",
|
|
47
|
+
"@openui5/themelib_sap_horizon": "1.136.22",
|
|
48
|
+
"less-openui5": "0.12.0",
|
|
49
|
+
"@open-rap/compiler": "0.3.0",
|
|
50
|
+
"@open-rap/runtime": "0.3.0"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsc -p tsconfig.build.json"
|
|
54
|
+
}
|
|
55
|
+
}
|