@sap-ux/generator-adp 0.1.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.
@@ -0,0 +1,33 @@
1
+ import type { Logger } from 'yeoman-environment';
2
+ import type { IVSCodeExtLogger, LogLevel } from '@vscode-logging/logger';
3
+ import { LogWrapper, type ILogWrapper } from '@sap-ux/fiori-generator-shared';
4
+ /**
5
+ * Static logger prevents passing of logger references through all functions, as this is a cross-cutting concern.
6
+ */
7
+ export default class AdpGeneratorLogger {
8
+ private static _logger;
9
+ /**
10
+ * Get the logger.
11
+ *
12
+ * @returns the logger
13
+ */
14
+ static get logger(): ILogWrapper;
15
+ /**
16
+ * Set the logger.
17
+ *
18
+ * @param value the logger to set
19
+ */
20
+ static set logger(value: ILogWrapper);
21
+ /**
22
+ * Configures the vscode logger.
23
+ *
24
+ * @param vscLogger - the vscode logger
25
+ * @param loggerName - the logger name
26
+ * @param yoLogger - the yeoman logger
27
+ * @param vscode - the vscode instance
28
+ * @param logLevel - the log level
29
+ * @param logWrapper - log wrapper instance
30
+ */
31
+ static configureLogging(vscLogger: IVSCodeExtLogger, loggerName: string, yoLogger: Logger, vscode?: unknown, logLevel?: LogLevel, logWrapper?: LogWrapper): void;
32
+ }
33
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
4
+ /**
5
+ * Static logger prevents passing of logger references through all functions, as this is a cross-cutting concern.
6
+ */
7
+ class AdpGeneratorLogger {
8
+ static _logger = fiori_generator_shared_1.DefaultLogger;
9
+ /**
10
+ * Get the logger.
11
+ *
12
+ * @returns the logger
13
+ */
14
+ static get logger() {
15
+ return AdpGeneratorLogger._logger;
16
+ }
17
+ /**
18
+ * Set the logger.
19
+ *
20
+ * @param value the logger to set
21
+ */
22
+ static set logger(value) {
23
+ AdpGeneratorLogger._logger = value;
24
+ }
25
+ /**
26
+ * Configures the vscode logger.
27
+ *
28
+ * @param vscLogger - the vscode logger
29
+ * @param loggerName - the logger name
30
+ * @param yoLogger - the yeoman logger
31
+ * @param vscode - the vscode instance
32
+ * @param logLevel - the log level
33
+ * @param logWrapper - log wrapper instance
34
+ */
35
+ static configureLogging(vscLogger, loggerName, yoLogger, vscode, logLevel, logWrapper) {
36
+ const logger = logWrapper ?? new fiori_generator_shared_1.LogWrapper(loggerName, yoLogger, logLevel, vscLogger, vscode);
37
+ AdpGeneratorLogger.logger = logger;
38
+ }
39
+ }
40
+ exports.default = AdpGeneratorLogger;
41
+ //# sourceMappingURL=logger.js.map
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@sap-ux/generator-adp",
3
+ "displayName": "SAPUI5 Adaptation Project",
4
+ "description": "Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.",
5
+ "version": "0.1.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/SAP/open-ux-tools.git",
9
+ "directory": "packages/generator-adp"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue"
13
+ },
14
+ "license": "Apache-2.0",
15
+ "main": "generators/app/index.js",
16
+ "files": [
17
+ "LICENSE",
18
+ "generators",
19
+ "yeoman.png",
20
+ "!generators/*.map",
21
+ "!generators/**/*.map"
22
+ ],
23
+ "keywords": [
24
+ "yeoman-generator"
25
+ ],
26
+ "dependencies": {
27
+ "@sap-devx/yeoman-ui-types": "1.14.4",
28
+ "@sap-devx/feature-toggle-node": "2.0.3",
29
+ "i18next": "23.5.1",
30
+ "yeoman-generator": "5.10.0",
31
+ "uuid": "10.0.0",
32
+ "@sap-ux/adp-tooling": "0.13.21",
33
+ "@sap-ux/axios-extension": "1.19.2",
34
+ "@sap-ux/btp-utils": "1.0.2",
35
+ "@sap-ux/feature-toggle": "0.2.3",
36
+ "@sap-ux/inquirer-common": "0.6.32",
37
+ "@sap-ux/logger": "0.6.0",
38
+ "@sap-ux/project-access": "1.29.18",
39
+ "@sap-ux/store": "1.0.0",
40
+ "@sap-ux/system-access": "0.5.34",
41
+ "@sap-ux/project-input-validator": "0.5.0",
42
+ "@sap-ux/fiori-generator-shared": "0.9.11"
43
+ },
44
+ "devDependencies": {
45
+ "@jest/types": "29.6.3",
46
+ "@types/fs-extra": "9.0.13",
47
+ "@types/inquirer": "8.2.6",
48
+ "@types/vscode": "1.73.1",
49
+ "@types/yeoman-environment": "2.10.11",
50
+ "@types/yeoman-generator": "5.2.11",
51
+ "@types/yeoman-test": "4.0.6",
52
+ "@types/uuid": "10.0.0",
53
+ "@vscode-logging/logger": "2.0.0",
54
+ "fs-extra": "10.0.0",
55
+ "rimraf": "5.0.5",
56
+ "typescript": "5.3.3",
57
+ "yeoman-test": "6.3.0"
58
+ },
59
+ "engines": {
60
+ "node": ">=18.x"
61
+ },
62
+ "generator-filter": {
63
+ "types": [
64
+ "adaptation-project",
65
+ "project",
66
+ "tools-suite"
67
+ ]
68
+ },
69
+ "scripts": {
70
+ "build": "tsc --build",
71
+ "clean": "rimraf --glob generators test/test-output coverage *.tsbuildinfo",
72
+ "watch": "tsc --watch",
73
+ "lint": "eslint . --ext .ts",
74
+ "lint:fix": "eslint . --ext .ts --fix",
75
+ "test": "jest --ci --forceExit --detectOpenHandles --colors --passWithNoTests",
76
+ "test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
77
+ "link": "pnpm link --global",
78
+ "unlink": "pnpm unlink --global"
79
+ }
80
+ }
package/yeoman.png ADDED
Binary file