@open-rap/compiler 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @open-rap/compiler
2
2
 
3
- The compiler of [Open RAP Runtime](https://clementringot.github.io/RAP-Transpiler/): CDS, BDEF,
3
+ The compiler of [Open RAP Runtime](https://clementringot.github.io/Open-Rap-Runtime/): CDS, BDEF,
4
4
  SRVD and DCL parsers, intermediate representation, generators (SQL, OData V4 `$metadata`,
5
5
  transpiled ABAP, OpenUI5 UI) and the command line.
6
6
 
@@ -323,7 +323,7 @@ finds the MCP server of rapt (tools \`rapt_check\`, \`rapt_generate\`, \`rapt_do
323
323
  - Write ABAP Cloud and CDS as in the ABAP Development Tools; RAP managed, with or without draft.
324
324
  - Run \`rapt check .\` after every change until there is no error; the codes are explained in
325
325
  the documentation (tile *Documentation* of \`rapt dev\`, the tool \`rapt_docs_read\` of
326
- \`rapt agent\`, or https://clementringot.github.io/RAP-Transpiler/docs/diagnostics.html).
326
+ \`rapt agent\`, or https://clementringot.github.io/Open-Rap-Runtime/docs/diagnostics.html).
327
327
  - Keep \`rapt/config.json\` in mode \`standard\` when the BO must activate on SAP; \`enhanced\`
328
328
  allows Open RAP Runtime extensions (mandatory fields checked automatically, managed BO on a
329
329
  custom entity).
package/dist/cli.js CHANGED
@@ -71,8 +71,8 @@ Options:
71
71
  --warnings-as-errors
72
72
  -h, --help
73
73
 
74
- Documentation: https://clementringot.github.io/RAP-Transpiler/docs/
75
- Report a bug or request a feature: https://clementringot.github.io/RAP-Transpiler/feedback.html
74
+ Documentation: https://clementringot.github.io/Open-Rap-Runtime/docs/
75
+ Report a bug or request a feature: https://clementringot.github.io/Open-Rap-Runtime/feedback.html
76
76
  `;
77
77
  function report(diagnostics) {
78
78
  for (const d of diagnostics.sorted()) {
@@ -228,7 +228,7 @@ ${rows.join("\n")}
228
228
  function readme(model, name, destinations = []) {
229
229
  return `# ${name}
230
230
 
231
- Application generated by [Open RAP Runtime](https://clementringot.github.io/RAP-Transpiler) from the
231
+ Application generated by [Open RAP Runtime](https://clementringot.github.io/Open-Rap-Runtime) from the
232
232
  RAP service definition \`${model.service.name}\`: an OData V4 service (\`${model.service.path}\`), the
233
233
  managed RAP runtime with the transpiled behavior pool, and an OpenUI5 UI (List Report / Object
234
234
  Page) at \`/ui/\`.
@@ -115,7 +115,7 @@ function readme(name, model) {
115
115
  const tiles = model.groups.flatMap((g) => g.tiles.map((t) => ({ group: g.title, tile: t })));
116
116
  return `# ${name}
117
117
 
118
- Launchpad generated by [Open RAP Runtime](https://clementringot.github.io/RAP-Transpiler): the entry
118
+ Launchpad generated by [Open RAP Runtime](https://clementringot.github.io/Open-Rap-Runtime): the entry
119
119
  point of the applications, as the SAP Fiori launchpad, built with OpenUI5. It shows the tiles
120
120
  assigned to the roles of the user, opens the applications at \`/apps/<id>/\` and forwards the
121
121
  requests of their UIs to their services: the browser sees a single origin and logs in once.
package/docs/DECISIONS.md CHANGED
@@ -1496,8 +1496,8 @@ correspond to points 1 to 13 of §11 of PLAN.md. The milestones M1 to M6 are tho
1496
1496
  (npm organization `open-rap`), the VS Code extension `open-rap-runtime-vscode` ("Open RAP
1497
1497
  Runtime"). Unchanged, so that existing projects keep working: the `rapt` command, the `rapt/`
1498
1498
  folder of the projects, the `.rapt/` build folder, the `rapt_*` tables, the `ZRAP_*` ABAP
1499
- objects. The URL of the website follows the name of the GitHub repository
1500
- (`RAP-Transpiler`) until it is renamed.
1499
+ objects. The URL of the website follows the name of the GitHub repository, renamed
1500
+ `Open-Rap-Runtime` (https://clementringot.github.io/Open-Rap-Runtime/).
1501
1501
  - **Why**: "Open" says open source and without proprietary SAP libraries; "RAP Runtime" says
1502
1502
  what the application runs. The website states that the project is not affiliated with SAP SE.
1503
1503
  - **Tests**: the whole suite (package names, generated applications with `vendor/open-rap-*`,
@@ -1524,3 +1524,31 @@ correspond to points 1 to 13 of §11 of PLAN.md. The milestones M1 to M6 are tho
1524
1524
  fields, prefill from the query string, URL of the issue with the fields of the bug form,
1525
1525
  fields of the feature form, mobile without horizontal scrolling).
1526
1526
 
1527
+
1528
+ ## D72 — Extension builds: progress, floorplan prompts; the website serves the released .vsix
1529
+
1530
+ - **Context**: in VS Code, *Build the application* kept its progress notification spinning after
1531
+ the build: the message of the result (with its *Open folder* button) was awaited inside the
1532
+ progress, so the progress ended only once the message was answered; the user saw a build that
1533
+ never ended. Building the launchpad asks the floorplan of each application that has none, but
1534
+ the prompt named only the entity set, not the application. The website served a `.vsix` built
1535
+ from `main`, whose version (that of `packages/vscode/package.json`) was not the released one.
1536
+ - **Decision**: the progress covers the call of `rapt` only; the result is shown after it, without
1537
+ being awaited. Every application of the VS Code workspace (each project with a service
1538
+ definition) goes into the one launchpad of the workspace when the launchpad is built: they are
1539
+ added to `launchpad.json` (what is there is kept) before the build; only an application built
1540
+ alone (standalone) stays out of it. The choice reads "Launchpad of the workspace (3
1541
+ applications)" with the names of the applications, never the name of a folder that could be
1542
+ taken for one of them, and "<application> alone (standalone)". The floorplan prompt names the
1543
+ application: the name of its workspace folder,
1544
+ with the folder when they differ ("Helpdesk (Worklist) (helpdesk) — Ticket"); building the
1545
+ launchpad still asks, application by application, the floorplan of every root entity set
1546
+ without one (all of them when no application has a floorplan). The website serves the `.vsix`
1547
+ of the latest GitHub release under its stable name, with its version shown on the page
1548
+ (`%VSIX_VERSION%` of `scripts/build-site.mjs`); the Release workflow runs the Site workflow once
1549
+ the release exists (a release created with the `GITHUB_TOKEN` does not trigger the `release`
1550
+ event). Without a release, the `.vsix` is built from the commit. The website and the links of
1551
+ the project follow the name of the repository, `Open-Rap-Runtime`.
1552
+ - **Tests**: `vscode/test/rapt.test.ts` (name of a project in the prompts, applications of the
1553
+ workspace, URL of the feedback form); a launchpad of three projects (one already built, two without floorplan) under a folder
1554
+ with an accent built by `rapt launchpad` in 2 s.
package/docs/README.md CHANGED
@@ -117,7 +117,7 @@ Open RAP Runtime, contains this documentation and serves the `.vsix` of the late
117
117
  ## Feedback
118
118
 
119
119
  Report a bug or request a feature with the
120
- [feedback form](https://clementringot.github.io/RAP-Transpiler/feedback.html) (it opens a
120
+ [feedback form](https://clementringot.github.io/Open-Rap-Runtime/feedback.html) (it opens a
121
121
  pre-filled issue in the public
122
122
  [feedback repository](https://github.com/ClementRingot/open-rap-runtime-feedback)), or in VS Code
123
123
  with *RAP: Report a bug or request a feature…*.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@open-rap/compiler",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Compiles SAP RAP sources (abapGit format) into a standalone Node.js OData V4 application.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
- "homepage": "https://clementringot.github.io/RAP-Transpiler/",
7
+ "homepage": "https://clementringot.github.io/Open-Rap-Runtime/",
8
8
  "keywords": [
9
9
  "sap",
10
10
  "rap",
@@ -44,7 +44,7 @@
44
44
  "@abaplint/transpiler": "2.14.24",
45
45
  "chevrotain": "13.2.0",
46
46
  "fast-xml-parser": "5.12.0",
47
- "@open-rap/model": "0.1.0"
47
+ "@open-rap/model": "0.1.1"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsc -p tsconfig.build.json && node scripts/copy-docs.mjs"