Skip to content

Commit

Permalink
Merge branch 'main' into fix/app-config-writer/convert-preview-prereq…
Browse files Browse the repository at this point in the history
…uisites
  • Loading branch information
heimwege authored Feb 27, 2025
2 parents 2281b19 + 7a9757b commit 67fb390
Show file tree
Hide file tree
Showing 254 changed files with 6,317 additions and 885 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ When analyzing a problem, it is helpful to be able to debug the modules. How to

Each of the packages has an extensive set of unit tests covering as many as possible different scenarios, therefore, as a starting point for debugging, it is a good idea to use the tests. The easiest (but not the only) way to debug a specific test in VSCode is to open a `JavaScript Debug Terminal` and then go to the package that needs to be debugged. Using the debug terminal, execute all tests with `pnpm test` or a specific one, e.g. execute `pnpm test -- test/basic.test.ts` in the `fiori-freestyle-writer` directory (`./packages/fiori-freestyle-writer`). When running either of the commands in the debug terminal, breakpoints set in VSCode will be active.

Additionally for the `*-writer` modules it is sometimes helpful to manually inspect the generated output of the unit tests on the filesystem. This can be achieved by setting the variable `UX_DEBUG` before running the tests e.g. in `fiori-freestyle-writer` run `UX_DEBUG=true pnpm test` and after the tests finish, the generated files can be found at `./test/test-output`.
Additionally, for the `*-writer` modules it is sometimes helpful to manually inspect the generated output of the unit tests on the filesystem. This can be achieved by setting the variable `UX_DEBUG` before running the tests e.g. in `fiori-freestyle-writer` run `UX_DEBUG=true pnpm test` and after the tests finish, the generated files can be found at `./test/test-output`.
Additional checks can be performed on the generated projects by also setting `UX_DEBUG_FULL` e.g. `UX_DEBUG=true UX_DEBUG_FULL=true pnpm test`.
This includes checks such as `npm install`, `npm run ts-typecheck`, `npm run lint` as appropriate to the project.

Expand Down
12 changes: 12 additions & 0 deletions examples/fe-fpm-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @sap-ux/fe-fpm-cli

## 0.0.68

### Patch Changes

- @sap-ux/fe-fpm-writer@0.33.8

## 0.0.67

### Patch Changes

- @sap-ux/fe-fpm-writer@0.33.7

## 0.0.66

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/fe-fpm-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sap-ux/fe-fpm-cli",
"version": "0.0.66",
"version": "0.0.68",
"description": "A simple CLI to prompt required information to create a building block using the fe-fpm-writer module's prompt and generate functions.",
"license": "Apache-2.0",
"private": true,
Expand Down
33 changes: 33 additions & 0 deletions examples/simple-generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# @sap-ux/generator-simple-fe

## 1.0.142

### Patch Changes

- @sap-ux/fiori-elements-writer@2.1.21
- @sap-ux/fiori-freestyle-writer@2.1.3
- @sap-ux/axios-extension@1.18.6
- @sap-ux/system-access@0.5.31

## 1.0.141

### Patch Changes

- @sap-ux/axios-extension@1.18.6
- @sap-ux/system-access@0.5.31
- @sap-ux/fiori-elements-writer@2.1.20
- @sap-ux/fiori-freestyle-writer@2.1.2

## 1.0.140

### Patch Changes

- @sap-ux/fiori-elements-writer@2.1.19
- @sap-ux/fiori-freestyle-writer@2.1.1

## 1.0.139

### Patch Changes

- Updated dependencies [fffc3a7]
- @sap-ux/fiori-freestyle-writer@2.1.0
- @sap-ux/fiori-elements-writer@2.1.18

## 1.0.138

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sap-ux/generator-simple-fe",
"version": "1.0.138",
"version": "1.0.142",
"description": "Simple example of a yeoman generator for Fiori elements.",
"license": "Apache-2.0",
"private": true,
Expand Down
26 changes: 26 additions & 0 deletions packages/abap-deploy-config-inquirer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @sap-ux/abap-deploy-config-inquirer

## 1.2.20

### Patch Changes

- @sap-ux/fiori-generator-shared@0.9.2
- @sap-ux/inquirer-common@0.6.21
- @sap-ux/axios-extension@1.18.6
- @sap-ux/system-access@0.5.31

## 1.2.19

### Patch Changes

- @sap-ux/axios-extension@1.18.6
- @sap-ux/fiori-generator-shared@0.9.1
- @sap-ux/system-access@0.5.31
- @sap-ux/inquirer-common@0.6.20

## 1.2.18

### Patch Changes

- Updated dependencies [fffc3a7]
- @sap-ux/fiori-generator-shared@0.9.0
- @sap-ux/inquirer-common@0.6.19

## 1.2.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/abap-deploy-config-inquirer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://github.com/SAP/open-ux-tools.git",
"directory": "packages/abap-deploy-config-inquirer"
},
"version": "1.2.17",
"version": "1.2.20",
"license": "Apache-2.0",
"main": "dist/index.js",
"scripts": {
Expand Down
40 changes: 40 additions & 0 deletions packages/abap-deploy-config-sub-generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# @sap-ux/abap-deploy-config-sub-generator

## 0.0.40

### Patch Changes

- Updated dependencies [4b8577f]
- @sap-ux/telemetry@0.5.64
- @sap-ux/fiori-generator-shared@0.9.2
- @sap-ux/project-access@1.29.10
- @sap-ux/abap-deploy-config-inquirer@1.2.20
- @sap-ux/deploy-config-generator-shared@0.0.29
- @sap-ux/abap-deploy-config-writer@0.0.91

## 0.0.39

### Patch Changes

- Updated dependencies [c8c292c]
- @sap-ux/project-access@1.29.9
- @sap-ux/abap-deploy-config-writer@0.0.90
- @sap-ux/fiori-generator-shared@0.9.1
- @sap-ux/telemetry@0.5.63
- @sap-ux/abap-deploy-config-inquirer@1.2.19
- @sap-ux/deploy-config-generator-shared@0.0.28

## 0.0.38

### Patch Changes

- Updated dependencies [d6118c9]
- @sap-ux/deploy-config-generator-shared@0.0.27

## 0.0.37

### Patch Changes

- Updated dependencies [fffc3a7]
- @sap-ux/fiori-generator-shared@0.9.0
- @sap-ux/abap-deploy-config-inquirer@1.2.18
- @sap-ux/deploy-config-generator-shared@0.0.26

## 0.0.36

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/abap-deploy-config-sub-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://github.com/SAP/open-ux-tools.git",
"directory": "packages/abap-deploy-config-sub-generator"
},
"version": "0.0.36",
"version": "0.0.40",
"license": "Apache-2.0",
"main": "generators/app/index.js",
"scripts": {
Expand Down
15 changes: 15 additions & 0 deletions packages/abap-deploy-config-writer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @sap-ux/abap-deploy-config-writer

## 0.0.91

### Patch Changes

- @sap-ux/project-access@1.29.10
- @sap-ux/system-access@0.5.31

## 0.0.90

### Patch Changes

- Updated dependencies [c8c292c]
- @sap-ux/project-access@1.29.9
- @sap-ux/system-access@0.5.31

## 0.0.89

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/abap-deploy-config-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://github.com/SAP/open-ux-tools.git",
"directory": "packages/abap-deploy-config-writer"
},
"version": "0.0.89",
"version": "0.0.91",
"license": "Apache-2.0",
"main": "dist/index.js",
"scripts": {
Expand Down
45 changes: 45 additions & 0 deletions packages/adp-flp-config-sub-generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# @sap-ux/adp-flp-config-sub-generator

## 0.0.18

### Patch Changes

- 4b8577f: fix: usage of static webapp path
- Updated dependencies [4b8577f]
- @sap-ux/adp-tooling@0.13.2
- @sap-ux/flp-config-inquirer@0.2.47
- @sap-ux/fiori-generator-shared@0.9.2
- @sap-ux/inquirer-common@0.6.21
- @sap-ux/project-access@1.29.10
- @sap-ux/axios-extension@1.18.6
- @sap-ux/system-access@0.5.31

## 0.0.17

### Patch Changes

- Updated dependencies [c8c292c]
- @sap-ux/project-access@1.29.9
- @sap-ux/adp-tooling@0.13.1
- @sap-ux/axios-extension@1.18.6
- @sap-ux/fiori-generator-shared@0.9.1
- @sap-ux/flp-config-inquirer@0.2.46
- @sap-ux/system-access@0.5.31
- @sap-ux/inquirer-common@0.6.20

## 0.0.16

### Patch Changes

- Updated dependencies [127bd12]
- @sap-ux/adp-tooling@0.13.0
- @sap-ux/flp-config-inquirer@0.2.45

## 0.0.15

### Patch Changes

- Updated dependencies [fffc3a7]
- @sap-ux/fiori-generator-shared@0.9.0
- @sap-ux/flp-config-inquirer@0.2.44
- @sap-ux/inquirer-common@0.6.19
- @sap-ux/adp-tooling@0.12.138

## 0.0.14

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adp-flp-config-sub-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sap-ux/adp-flp-config-sub-generator",
"description": "Generator for adding FLP configuration to an Adaptation Project",
"version": "0.0.14",
"version": "0.0.18",
"repository": {
"type": "git",
"url": "https://github.com/SAP/open-ux-tools.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/adp-flp-config-sub-generator/src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class extends Generator {
requestOptions['auth'] = { username: this.credentials.username, password: this.credentials.password };
}
const provider = await createAbapServiceProvider(target, requestOptions, false, this.toolsLogger);
const variant = getVariant(this.projectRootPath);
const variant = await getVariant(this.projectRootPath);
const manifestService = await ManifestService.initMergedManifest(
provider,
this.projectRootPath,
Expand Down
36 changes: 36 additions & 0 deletions packages/adp-tooling/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @sap-ux/adp-tooling

## 0.13.2

### Patch Changes

- 4b8577f: fix: usage of static webapp path
- Updated dependencies [4b8577f]
- @sap-ux/odata-service-writer@0.26.5
- @sap-ux/i18n@0.2.2
- @sap-ux/inquirer-common@0.6.21
- @sap-ux/project-access@1.29.10
- @sap-ux/axios-extension@1.18.6
- @sap-ux/system-access@0.5.31

## 0.13.1

### Patch Changes

- Updated dependencies [c8c292c]
- @sap-ux/project-access@1.29.9
- @sap-ux/axios-extension@1.18.6
- @sap-ux/odata-service-writer@0.26.4
- @sap-ux/system-access@0.5.31
- @sap-ux/inquirer-common@0.6.20

## 0.13.0

### Minor Changes

- 127bd12: feat: Add Typescript support for Adaptation Project

## 0.12.138

### Patch Changes

- @sap-ux/inquirer-common@0.6.19

## 0.12.137

### Patch Changes
Expand Down
10 changes: 6 additions & 4 deletions packages/adp-tooling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"bugs": {
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
},
"version": "0.12.137",
"version": "0.13.2",
"license": "Apache-2.0",
"author": "@SAP/ux-tools-team",
"main": "dist/index.js",
Expand All @@ -20,8 +20,8 @@
"format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"test": "jest FIORI_TOOLS_DISABLE_SECURE_STORE=true --ci --forceExit --detectOpenHandles --colors --testPathPattern=test/unit",
"test-u": "jest FIORI_TOOLS_DISABLE_SECURE_STORE=true --ci --forceExit --detectOpenHandles --colors -u",
"test": "cross-env FIORI_TOOLS_DISABLE_SECURE_STORE=true jest --ci --forceExit --detectOpenHandles --colors --testPathPattern=test/unit",
"test-u": "cross-env FIORI_TOOLS_DISABLE_SECURE_STORE=true jest --ci --forceExit --detectOpenHandles --colors -u",
"link": "pnpm link --global",
"unlink": "pnpm unlink --global"
},
Expand All @@ -44,6 +44,7 @@
"@sap-ux/system-access": "workspace:*",
"@sap-ux/ui5-config": "workspace:*",
"@sap-ux/odata-service-writer": "workspace:*",
"@sap-ux/nodejs-utils": "workspace:*",
"@sap-ux/i18n": "workspace:*",
"adm-zip": "0.5.10",
"ejs": "3.1.10",
Expand All @@ -70,7 +71,8 @@
"express": "4.21.2",
"nock": "13.4.0",
"rimraf": "5.0.5",
"supertest": "6.3.3"
"supertest": "6.3.3",
"cross-env": "^7.0.3"
},
"engines": {
"node": ">=18.x"
Expand Down
2 changes: 1 addition & 1 deletion packages/adp-tooling/src/base/abap/manifest-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class ManifestService {
*/
private async fetchMergedManifest(basePath: string, descriptorVariantId: string): Promise<void> {
const zip = new ZipFile();
const files = getWebappFiles(basePath);
const files = await getWebappFiles(basePath);
for (const file of files) {
zip.addFile(file.relativePath, Buffer.from(file.content, 'utf-8'));
}
Expand Down
Loading

0 comments on commit 67fb390

Please sign in to comment.