@rxap/plugin-open-api 20.0.0-dev.1 → 20.0.0-dev.2
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/CHANGELOG.md +9 -0
- package/README.md +18 -4
- package/executors.json +9 -4
- package/package.json +17 -9
- package/src/executors/copy-open-api-sdk/executor.d.ts +5 -0
- package/src/executors/{copy-client-sdk → copy-open-api-sdk}/executor.js +1 -1
- package/src/executors/copy-open-api-sdk/executor.js.map +1 -0
- package/src/executors/{copy-client-sdk → copy-open-api-sdk}/schema.d.ts +1 -1
- package/src/executors/{copy-client-sdk → copy-open-api-sdk}/schema.json +1 -1
- package/src/executors/generate/executor.d.ts +4 -0
- package/src/executors/generate/executor.js +14 -0
- package/src/executors/generate/executor.js.map +1 -0
- package/src/executors/generate/schema.d.ts +16 -0
- package/src/executors/generate/schema.json +73 -0
- package/src/generators/init/generator.js +14 -93
- package/src/generators/init/generator.js.map +1 -1
- package/src/generators/init/init-workspace.d.ts +3 -0
- package/src/generators/init/init-workspace.js +20 -0
- package/src/generators/init/init-workspace.js.map +1 -0
- package/src/generators/init/schema.d.ts +7 -2
- package/src/generators/init/schema.json +25 -1
- package/src/plugin.d.ts +6 -0
- package/src/plugin.js +127 -0
- package/src/plugin.js.map +1 -0
- package/src/executors/copy-client-sdk/executor.d.ts +0 -5
- package/src/executors/copy-client-sdk/executor.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [20.0.0-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/plugin-open-api@20.0.0-dev.1...@rxap/plugin-open-api@20.0.0-dev.2) (2025-01-03)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- support nx plugins ([e328b50](https://gitlab.com/rxap/packages/commit/e328b507488df02562107a6288f60f7953a76191))
|
|
11
|
+
- support nx plugins ([3ce5d42](https://gitlab.com/rxap/packages/commit/3ce5d428533386361226f95202e7b970021c1104))
|
|
12
|
+
- support nx plugins ([a28c12d](https://gitlab.com/rxap/packages/commit/a28c12d411a1ce331a9b25f201d8b4674ac84e88))
|
|
13
|
+
- support nx plugins ([011871a](https://gitlab.com/rxap/packages/commit/011871a844241ead7a5dc2a07470af65251c8647))
|
|
14
|
+
|
|
6
15
|
# [20.0.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-open-api@19.1.9-dev.1...@rxap/plugin-open-api@20.0.0-dev.1) (2024-12-11)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @rxap/plugin-open-api
|
package/README.md
CHANGED
|
@@ -66,15 +66,29 @@ yarn nx g @rxap/plugin-open-api:init
|
|
|
66
66
|
```
|
|
67
67
|
# Executors
|
|
68
68
|
|
|
69
|
-
## copy-
|
|
70
|
-
> copy-
|
|
69
|
+
## copy-open-api-sdk
|
|
70
|
+
> copy-open-api-sdk executor
|
|
71
71
|
|
|
72
72
|
**project.json**
|
|
73
73
|
```json
|
|
74
74
|
{
|
|
75
75
|
"targets": {
|
|
76
|
-
"copy-
|
|
77
|
-
"executor": "@rxap/plugin-open-api:copy-
|
|
76
|
+
"copy-open-api-sdk": {
|
|
77
|
+
"executor": "@rxap/plugin-open-api:copy-open-api-sdk"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## generate
|
|
84
|
+
> generate executor
|
|
85
|
+
|
|
86
|
+
**project.json**
|
|
87
|
+
```json
|
|
88
|
+
{
|
|
89
|
+
"targets": {
|
|
90
|
+
"generate": {
|
|
91
|
+
"executor": "@rxap/plugin-open-api:generate"
|
|
78
92
|
}
|
|
79
93
|
}
|
|
80
94
|
}
|
package/executors.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"executors": {
|
|
3
|
-
"copy-
|
|
4
|
-
"implementation": "./src/executors/copy-
|
|
5
|
-
"schema": "./src/executors/copy-
|
|
6
|
-
"description": "copy-
|
|
3
|
+
"copy-open-api-sdk": {
|
|
4
|
+
"implementation": "./src/executors/copy-open-api-sdk/executor",
|
|
5
|
+
"schema": "./src/executors/copy-open-api-sdk/schema.json",
|
|
6
|
+
"description": "copy-open-api-sdk executor"
|
|
7
|
+
},
|
|
8
|
+
"generate": {
|
|
9
|
+
"implementation": "./src/executors/generate/executor",
|
|
10
|
+
"schema": "./src/executors/generate/schema.json",
|
|
11
|
+
"description": "generate executor"
|
|
7
12
|
}
|
|
8
13
|
}
|
|
9
14
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "20.0.0-dev.
|
|
2
|
+
"version": "20.0.0-dev.2",
|
|
3
3
|
"name": "@rxap/plugin-open-api",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@nx/devkit": "20.2.1",
|
|
7
|
-
"@rxap/node-utilities": "^1.3.7-dev.
|
|
8
|
-
"@rxap/plugin-library": "^20.0.0-dev.
|
|
9
|
-
"@rxap/plugin-utilities": "^20.0.0-dev.
|
|
10
|
-
"@rxap/utilities": "^16.4.1-dev.
|
|
11
|
-
"@rxap/workspace-open-api": "^19.0.10-dev.
|
|
12
|
-
"@rxap/workspace-ts-morph": "^19.1.8-dev.
|
|
13
|
-
"@rxap/workspace-utilities": "^19.
|
|
7
|
+
"@rxap/node-utilities": "^1.3.7-dev.2",
|
|
8
|
+
"@rxap/plugin-library": "^20.0.0-dev.2",
|
|
9
|
+
"@rxap/plugin-utilities": "^20.0.0-dev.2",
|
|
10
|
+
"@rxap/utilities": "^16.4.1-dev.2",
|
|
11
|
+
"@rxap/workspace-open-api": "^19.0.10-dev.2",
|
|
12
|
+
"@rxap/workspace-ts-morph": "^19.1.8-dev.2",
|
|
13
|
+
"@rxap/workspace-utilities": "^19.6.0-dev.0",
|
|
14
14
|
"tslib": "2.6.2",
|
|
15
15
|
"yaml": "2.3.1"
|
|
16
16
|
},
|
|
@@ -44,7 +44,15 @@
|
|
|
44
44
|
},
|
|
45
45
|
"schematics": "./generators.json",
|
|
46
46
|
"type": "commonjs",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "db30e47152e1aa1c2eb16f84ed892b3c26822927",
|
|
48
|
+
"exports": {
|
|
49
|
+
"./package.json": "./package.json",
|
|
50
|
+
".": {
|
|
51
|
+
"types": "./src/index.d.ts",
|
|
52
|
+
"default": "./src/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./plugin": "./src/plugin.js"
|
|
55
|
+
},
|
|
48
56
|
"types": "./src/index.d.ts",
|
|
49
57
|
"main": "./src/index.js"
|
|
50
58
|
}
|
|
@@ -66,7 +66,7 @@ function runExecutor(options, context) {
|
|
|
66
66
|
// then enforce that remote methods are not skipped
|
|
67
67
|
options.skipRemoteMethods = false;
|
|
68
68
|
}
|
|
69
|
-
console.log('Executor ran for
|
|
69
|
+
console.log('Executor ran for CopyOpenApiSdk', options);
|
|
70
70
|
if (!context.projectsConfigurations.projects[options.clientSdkProject]) {
|
|
71
71
|
throw new Error(`Could not find project '${options.clientSdkProject}'`);
|
|
72
72
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/open-api/src/executors/copy-open-api-sdk/executor.ts"],"names":[],"mappings":";;AAsEA,8BAuCC;;AA5GD,yDAAsD;AACtD,6DAA8D;AAC9D,2BAIY;AACZ,+BAA4B;AAG5B,MAAM,0BAA0B,GAAG;IACjC,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,YAAY;CACb,CAAC;AAEF,MAAM,0BAA0B,GAAG;IACjC,cAAc;IACd,gBAAgB;IAChB,YAAY;CACb,CAAC;AAEF,MAAM,0BAA0B,GAAG;IACjC,UAAU;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M,UAAU,IAAI,0BAA0B,EAAE,CAAC;YACpD,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAC3C,CAAC;QAED,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,KAAK,MAAM,UAAU,IAAI,0BAA0B,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC7D,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,KAAK,MAAM,UAAU,IAAI,0BAA0B,EAAE,CAAC;gBACpD,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const utilities_1 = require("@rxap/utilities");
|
|
5
|
+
const plugin_library_1 = require("@rxap/plugin-library");
|
|
6
|
+
const runExecutor = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
7
|
+
console.log('Executor ran for Generate', options);
|
|
8
|
+
return (0, plugin_library_1.RunGenerator)({
|
|
9
|
+
generator: '@rxap/plugin-library:generate',
|
|
10
|
+
options: (0, utilities_1.DeleteEmptyProperties)(Object.assign({}, options))
|
|
11
|
+
}, context);
|
|
12
|
+
});
|
|
13
|
+
exports.default = runExecutor;
|
|
14
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/open-api/src/executors/generate/executor.ts"],"names":[],"mappings":";;;AACA,+CAAwD;AACxD,yDAE8B;AAG9B,MAAM,WAAW,GAA4C,CAC3D,OAAO,EAAE,OAAO,EAChB,EAAE;IACF,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAClD,OAAO,IAAA,6BAAY,EAAC;QAClB,SAAS,EAAE,+BAA+B;QAC1C,OAAO,EAAE,IAAA,iCAAqB,oBACzB,OAAO,EACV;KACH,EAAE,OAAO,CAAC,CAAC;AACd,CAAC,CAAA,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface GenerateExecutorSchema {
|
|
2
|
+
project: string;
|
|
3
|
+
debug?: boolean;
|
|
4
|
+
prefix: string;
|
|
5
|
+
export?: boolean;
|
|
6
|
+
serverId?: string;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
directory?: string;
|
|
9
|
+
skipRemoteMethod: boolean;
|
|
10
|
+
skipCommand: boolean;
|
|
11
|
+
skipProvider: boolean;
|
|
12
|
+
skipDirectives: boolean;
|
|
13
|
+
skipDataSource: boolean;
|
|
14
|
+
skipFormat?: boolean;
|
|
15
|
+
path: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"title": "Generate executor",
|
|
5
|
+
"description": "",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"properties": {
|
|
9
|
+
"path": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The path to the openapi config",
|
|
12
|
+
"format": "path"
|
|
13
|
+
},
|
|
14
|
+
"skipFormat": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": true
|
|
17
|
+
},
|
|
18
|
+
"project": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The target project where the data sources and remote methods should be generated."
|
|
21
|
+
},
|
|
22
|
+
"directory": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "A directory where the library is placed."
|
|
25
|
+
},
|
|
26
|
+
"prefix": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"transport": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": [
|
|
32
|
+
"amplify"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"export": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "If true the index-export generator will be executed after the generation",
|
|
38
|
+
"default": true
|
|
39
|
+
},
|
|
40
|
+
"inline": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"default": true
|
|
43
|
+
},
|
|
44
|
+
"skipRemoteMethod": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"default": false
|
|
47
|
+
},
|
|
48
|
+
"skipDataSource": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"default": true
|
|
51
|
+
},
|
|
52
|
+
"skipProvider": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"default": true
|
|
55
|
+
},
|
|
56
|
+
"skipDirectives": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"default": true
|
|
59
|
+
},
|
|
60
|
+
"skipCommand": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": false
|
|
63
|
+
},
|
|
64
|
+
"serverId": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"path"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"required": []
|
|
73
|
+
}
|
|
@@ -3,101 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.initGenerator = initGenerator;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
6
|
+
const utilities_1 = require("@rxap/utilities");
|
|
7
|
+
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
8
|
+
const init_workspace_1 = require("./init-workspace");
|
|
7
9
|
function initGenerator(tree, options) {
|
|
8
10
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
var _a, _b
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
console.log(`Peer dependencies: ${Object.keys(peerDependencies).join(', ')}`);
|
|
22
|
-
const rootPackageJson = JSON.parse(tree.read('package.json', 'utf-8'));
|
|
23
|
-
let isDevDependency = !!((_a = rootPackageJson.devDependencies) === null || _a === void 0 ? void 0 : _a[packageName]);
|
|
24
|
-
if (isDevDependency &&
|
|
25
|
-
[/^@rxap\/ngx/, /^@rxap\/nest/].some((rx) => rx.test(packageName))) {
|
|
26
|
-
(_b = rootPackageJson.dependencies) !== null && _b !== void 0 ? _b : (rootPackageJson.dependencies = {});
|
|
27
|
-
rootPackageJson.dependencies[packageName] =
|
|
28
|
-
rootPackageJson.devDependencies[packageName];
|
|
29
|
-
delete rootPackageJson.devDependencies[packageName];
|
|
30
|
-
isDevDependency = false;
|
|
31
|
-
tree.write('package.json', JSON.stringify(rootPackageJson, null, 2));
|
|
32
|
-
}
|
|
33
|
-
if (!isDevDependency && [
|
|
34
|
-
/^@rxap\/plugin/,
|
|
35
|
-
/^@rxap\/workspace/,
|
|
36
|
-
/@rxap\/schematic/,
|
|
37
|
-
]) {
|
|
38
|
-
(_c = rootPackageJson.devDependencies) !== null && _c !== void 0 ? _c : (rootPackageJson.devDependencies = {});
|
|
39
|
-
rootPackageJson.devDependencies[packageName] =
|
|
40
|
-
rootPackageJson.dependencies[packageName];
|
|
41
|
-
delete rootPackageJson.dependencies[packageName];
|
|
42
|
-
isDevDependency = true;
|
|
43
|
-
tree.write('package.json', JSON.stringify(rootPackageJson, null, 2));
|
|
44
|
-
}
|
|
45
|
-
const missingPeerDependencies = Object.entries(peerDependencies)
|
|
46
|
-
.filter(([dep]) => {
|
|
47
|
-
var _a, _b;
|
|
48
|
-
return !((_a = rootPackageJson.dependencies) === null || _a === void 0 ? void 0 : _a[dep]) &&
|
|
49
|
-
!((_b = rootPackageJson.devDependencies) === null || _b === void 0 ? void 0 : _b[dep]);
|
|
50
|
-
})
|
|
51
|
-
.reduce((acc, [dep, version]) => (Object.assign(Object.assign({}, acc), { [dep]: version })), {});
|
|
52
|
-
if (!Object.keys(missingPeerDependencies).length) {
|
|
53
|
-
console.log('No missing peer dependencies');
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (isDevDependency) {
|
|
57
|
-
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, missingPeerDependencies);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
(0, devkit_1.addDependenciesToPackageJson)(tree, missingPeerDependencies, {});
|
|
61
|
-
}
|
|
62
|
-
yield (0, devkit_1.formatFiles)(tree);
|
|
63
|
-
(0, devkit_1.installPackagesTask)(tree);
|
|
64
|
-
for (const peer of Object.keys(missingPeerDependencies)) {
|
|
65
|
-
console.log(`Peer dependency ${peer} added to package.json`);
|
|
66
|
-
const peerPackageJsonFilePath = (0, path_1.join)('node_modules', ...peer.split('/'), 'package.json');
|
|
67
|
-
if (!tree.exists(peerPackageJsonFilePath)) {
|
|
68
|
-
console.log(`Peer dependency ${peer} has no package.json`);
|
|
69
|
-
continue;
|
|
70
|
-
}
|
|
71
|
-
const { generators, schematics } = JSON.parse(tree.read(peerPackageJsonFilePath, 'utf-8'));
|
|
72
|
-
if (!generators && !schematics) {
|
|
73
|
-
console.log(`Peer dependency ${peer} has no generators or schematics`);
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
const configFile = generators || schematics;
|
|
77
|
-
if (!tree.exists((0, path_1.join)('node_modules', ...peer.split('/'), configFile))) {
|
|
78
|
-
console.log(`Peer dependency ${peer} has no generators or schematics file`);
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
const config = JSON.parse(tree.read((0, path_1.join)('node_modules', ...peer.split('/'), configFile), 'utf-8'));
|
|
82
|
-
if (!((_d = config.generators) === null || _d === void 0 ? void 0 : _d.init)) {
|
|
83
|
-
console.log(`Peer dependency ${peer} has no init generator`);
|
|
84
|
-
continue;
|
|
85
|
-
}
|
|
86
|
-
const initGeneratorFilePath = config.generators.init.factory;
|
|
87
|
-
const fullInitGeneratorFilePath = (0, path_1.join)('node_modules', ...peer.split('/'), initGeneratorFilePath) + '.js';
|
|
88
|
-
if (!tree.exists(fullInitGeneratorFilePath)) {
|
|
89
|
-
console.log(`Peer dependency ${peer} has no init generator file: ` +
|
|
90
|
-
fullInitGeneratorFilePath);
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
94
|
-
const initGenerator = (_e = require((0, path_1.join)('node_modules', ...peer.split('/'), initGeneratorFilePath))) === null || _e === void 0 ? void 0 : _e.default;
|
|
95
|
-
if (typeof initGenerator !== 'function') {
|
|
96
|
-
console.log(`Peer dependency ${peer} has no init generator function`);
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
console.log(`Run init generator for peer dependency ${peer}`);
|
|
100
|
-
yield initGenerator(tree, options);
|
|
11
|
+
var _a, _b;
|
|
12
|
+
(_a = options.project) !== null && _a !== void 0 ? _a : (options.project = undefined);
|
|
13
|
+
(_b = options.projects) !== null && _b !== void 0 ? _b : (options.projects = []);
|
|
14
|
+
if (options.project) {
|
|
15
|
+
(0, utilities_1.CoerceArrayItems)(options.projects, [options.project]);
|
|
16
|
+
}
|
|
17
|
+
console.log('compodoc init generator:', options);
|
|
18
|
+
yield (0, init_workspace_1.initWorkspace)(tree, options);
|
|
19
|
+
(0, workspace_utilities_1.GenerateSerializedSchematicFile)(tree, '/', '@rxap/plugin-compodoc', 'init', options);
|
|
20
|
+
if (!options.skipFormat) {
|
|
21
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
101
22
|
}
|
|
102
23
|
});
|
|
103
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/open-api/src/generators/init/generator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/open-api/src/generators/init/generator.ts"],"names":[],"mappings":";;AASA,sCAqBC;;AA9BD,uCAGoB;AACpB,+CAAmD;AACnD,mEAA4E;AAC5E,qDAAiD;AAGjD,SAAsB,aAAa,CAAC,IAAU,EAAE,OAA4B;;;QAC1E,MAAA,OAAO,CAAC,OAAO,oCAAf,OAAO,CAAC,OAAO,GAAK,SAAS,EAAC;QAC9B,MAAA,OAAO,CAAC,QAAQ,oCAAhB,OAAO,CAAC,QAAQ,GAAK,EAAE,EAAC;QACxB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,IAAA,4BAAgB,EAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;QAEjD,MAAM,IAAA,8BAAa,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEnC,IAAA,qDAA+B,EAC7B,IAAI,EACJ,GAAG,EACH,uBAAuB,EACvB,MAAM,EACN,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;CAAA;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initWorkspace = initWorkspace;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
7
|
+
function initWorkspace(tree, options) {
|
|
8
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
+
console.log('init open-api workspace');
|
|
10
|
+
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
11
|
+
if ((0, workspace_utilities_1.IsRxapRepository)(tree)) {
|
|
12
|
+
(0, workspace_utilities_1.CoerceNxPlugin)(nxJson, './packages/plugin/open-api/src/plugin.ts');
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
(0, workspace_utilities_1.CoerceNxPlugin)(nxJson, '@rxap/plugin-open-api/plugin');
|
|
16
|
+
}
|
|
17
|
+
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=init-workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-workspace.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/open-api/src/generators/init/init-workspace.ts"],"names":[],"mappings":";;AAWA,sCAaC;;AAxBD,uCAIoB;AACpB,mEAGmC;AAGnC,SAAsB,aAAa,CAAC,IAAU,EAAE,OAA4B;;QAC1E,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QAEvC,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;QAEhC,IAAI,IAAA,sCAAgB,EAAC,IAAI,CAAC,EAAE,CAAC;YAC3B,IAAA,oCAAc,EAAC,MAAM,EAAE,0CAA0C,CAAC,CAAC;QACrE,CAAC;aAAM,CAAC;YACN,IAAA,oCAAc,EAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC;QACzD,CAAC;QAED,IAAA,qBAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAE7B,CAAC;CAAA"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface InitGeneratorSchema {
|
|
2
|
+
project?: string;
|
|
3
|
+
projects?: string[];
|
|
4
|
+
overwrite?: boolean;
|
|
5
|
+
skipProjects?: boolean;
|
|
6
|
+
skipFormat?: boolean;
|
|
7
|
+
}
|
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
"$id": "Init",
|
|
4
4
|
"title": "",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"properties": {
|
|
6
|
+
"properties": {
|
|
7
|
+
"project": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"projects": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"skipFormat": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"default": false
|
|
19
|
+
},
|
|
20
|
+
"overwrite": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to overwrite existing files"
|
|
24
|
+
},
|
|
25
|
+
"skipProjects": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false,
|
|
28
|
+
"description": "Whether to skip executing project specific initialization"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
7
31
|
"required": []
|
|
8
32
|
}
|
package/src/plugin.d.ts
ADDED
package/src/plugin.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createNodesV2 = void 0;
|
|
4
|
+
exports.normalizeOptions = normalizeOptions;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
7
|
+
const fs_1 = require("fs");
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
require("colors");
|
|
10
|
+
function normalizeOptions(options) {
|
|
11
|
+
return options !== null && options !== void 0 ? options : {};
|
|
12
|
+
}
|
|
13
|
+
exports.createNodesV2 = [
|
|
14
|
+
'**/tsconfig.lib.json',
|
|
15
|
+
(configFilePaths, options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
16
|
+
const normalizedOptions = normalizeOptions(options);
|
|
17
|
+
const includedConfigFilePaths = yield Promise.all(configFilePaths.map((configFilePath) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
if (yield shouldHaveProjectConfiguration(configFilePath, normalizedOptions, context)) {
|
|
19
|
+
return configFilePath;
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
}))).then((configFilePathOrUndefinedList) => configFilePathOrUndefinedList.filter((value) => value !== undefined));
|
|
23
|
+
const results = yield Promise.all(includedConfigFilePaths.map((configFilePath) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
+
const [projectPath, projectConfiguration] = yield createProjectConfiguration(configFilePath, normalizedOptions, context);
|
|
25
|
+
return [configFilePath, projectPath, projectConfiguration];
|
|
26
|
+
})));
|
|
27
|
+
return results.map(([configFilePath, projectPath, projectConfiguration]) => [
|
|
28
|
+
configFilePath,
|
|
29
|
+
{
|
|
30
|
+
projects: {
|
|
31
|
+
[projectPath]: projectConfiguration,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
]);
|
|
35
|
+
}),
|
|
36
|
+
];
|
|
37
|
+
function shouldHaveProjectConfiguration(configFilePath, options, context) {
|
|
38
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const projectPath = (0, path_1.dirname)(configFilePath);
|
|
40
|
+
const tree = new workspace_utilities_1.FsTree(context.workspaceRoot);
|
|
41
|
+
const projectConfiguration = (0, workspace_utilities_1.FindProjectByPath)(tree, projectPath);
|
|
42
|
+
if (!projectConfiguration) {
|
|
43
|
+
// console.log(`The folder of the file '${ configFilePath }' is not the root of a project. Skipping`.yellow);
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if (!['openapi', 'open-api'].some((tag) => { var _a; return (_a = projectConfiguration.tags) === null || _a === void 0 ? void 0 : _a.includes(tag); })) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
const projectName = projectConfiguration.name;
|
|
50
|
+
if (!projectName.startsWith('open-api-')) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
const serviceProjectName = projectName.replace(/^open-api-/, '');
|
|
54
|
+
const serviceProjectConfiguration = (0, workspace_utilities_1.FindProject)(tree, serviceProjectName);
|
|
55
|
+
if (!serviceProjectConfiguration) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
if (!(0, fs_1.existsSync)((0, path_1.join)(serviceProjectConfiguration.root, 'src/swagger.ts'))) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
return true;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function createProjectConfiguration(configFilePath, options, context) {
|
|
65
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const projectPath = (0, path_1.dirname)(configFilePath);
|
|
67
|
+
const targets = {};
|
|
68
|
+
const tree = new workspace_utilities_1.FsTree(context.workspaceRoot);
|
|
69
|
+
const projectConfiguration = (0, workspace_utilities_1.FindProjectByPath)(tree, projectPath);
|
|
70
|
+
const projectName = projectConfiguration.name;
|
|
71
|
+
const serviceProjectName = projectName.replace(/^open-api-/, '');
|
|
72
|
+
const serviceProjectConfiguration = (0, workspace_utilities_1.FindProject)(tree, serviceProjectName);
|
|
73
|
+
const serviceProjectRoot = serviceProjectConfiguration.root;
|
|
74
|
+
targets['generate-open-api'] = createGenerateOpenApiTarget(serviceProjectName, serviceProjectRoot);
|
|
75
|
+
targets['build'] = createBuildTarget(projectPath);
|
|
76
|
+
return [
|
|
77
|
+
projectPath, {
|
|
78
|
+
targets,
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function createBuildTarget(projectPath) {
|
|
84
|
+
return {
|
|
85
|
+
executor: '@nx/js:tsc',
|
|
86
|
+
outputs: [
|
|
87
|
+
'{options.outputPath}',
|
|
88
|
+
],
|
|
89
|
+
options: {
|
|
90
|
+
outputPath: `dist/${projectPath}`,
|
|
91
|
+
main: `${projectPath}/src/index.ts`,
|
|
92
|
+
tsConfig: `${projectPath}/tsconfig.lib.json`,
|
|
93
|
+
assets: [],
|
|
94
|
+
generateExportsField: true,
|
|
95
|
+
additionalEntryPoints: [
|
|
96
|
+
`${projectPath}/src/lib/commands/index.ts`,
|
|
97
|
+
`${projectPath}/src/lib/components/index.ts`,
|
|
98
|
+
`${projectPath}/src/lib/parameters/index.ts`,
|
|
99
|
+
`${projectPath}/src/lib/remote-methods/index.ts`,
|
|
100
|
+
`${projectPath}/src/lib/request-bodies/index.ts`,
|
|
101
|
+
`${projectPath}/src/lib/responses/index.ts`,
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
dependsOn: [
|
|
105
|
+
'generate-open-api',
|
|
106
|
+
],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function createGenerateOpenApiTarget(serviceProjectName, serviceProjectRoot) {
|
|
110
|
+
return {
|
|
111
|
+
dependsOn: [
|
|
112
|
+
{
|
|
113
|
+
projects: serviceProjectName,
|
|
114
|
+
target: 'swagger-generate',
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
executor: '@rxap/plugin-openapi:generate',
|
|
118
|
+
outputs: ['{projectRoot}/src'],
|
|
119
|
+
cache: true,
|
|
120
|
+
inputs: [`{workspaceRoot}/swagger/${serviceProjectRoot}/openapi.json`],
|
|
121
|
+
options: {
|
|
122
|
+
path: `swagger/${serviceProjectRoot}/openapi.json`,
|
|
123
|
+
serverId: serviceProjectName,
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../packages/plugin/open-api/src/plugin.ts"],"names":[],"mappings":";;;AAsBA,4CAIC;;A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,WAAW,kCAAkC;gBAChD,GAAG,WAAW,6BAA6B;aAC5C;SACF;QACD,SAAS,EAAE;YACT,mBAAmB;SACpB;KACF,CAAC;AACJ,CAAC;AAED,SAAS,2BAA2B,CAAC,kBAA0B,EAAE,kBAA0B;IACzF,OAAO;QACL,SAAS,EAAE;YACT;gBACE,QAAQ,EAAE,kBAAkB;gBAC5B,MAAM,EAAE,kBAAkB;aAC3B;SACF;QACD,QAAQ,EAAE,+BAA+B;QACzC,OAAO,EAAE,CAAE,mBAAmB,CAAE;QAChC,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,CAAE,2BAA4B,kBAAmB,eAAe,CAAE;QAC1E,OAAO,EAAE;YACP,IAAI,EAAE,WAAY,kBAAmB,eAAe;YACpD,QAAQ,EAAE,kBAAkB;SAC7B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/open-api/src/executors/copy-client-sdk/executor.ts"],"names":[],"mappings":";;AAsEA,8BAuCC;;AA5GD,yDAAsD;AACtD,6DAA8D;AAC9D,2BAIY;AACZ,+BAA4B;AAG5B,MAAM,0BAA0B,GAAG;IACjC,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,YAAY;CACb,CAAC;AAEF,MAAM,0BAA0B,GAAG;IACjC,cAAc;IACd,gBAAgB;IAChB,YAAY;CACb,CAAC;AAEF,MAAM,0BAA0B,GAAG;IACjC,UAAU;CACX,CAAC;AAEF,SAAS,0BAA0B,CAAC,OAAoC;IACtE,MAAM,IAAI,GAAG,CAAE,GAAG,0BAA0B,CAAE,CAAC;IAC/C,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;QAC3B,IAAI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