@ama-sdk/schematics 9.2.0-alpha.9 → 9.3.0-alpha.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/package.json +11 -11
- package/schematics/java/client-core/swagger-codegen-java-client/target/javaClient-swagger-codegen-tests.jar +0 -0
- package/schematics/java/client-core/swagger-codegen-java-client/target/javaClient-swagger-codegen.jar +0 -0
- package/schematics/typescript/core/index.js +5 -5
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator-tests.jar +0 -0
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator.jar +0 -0
- package/schematics/typescript/shell/templates/base/jest.config.js +2 -2
- package/schematics/typescript/shell/templates/base/package.json.template +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-sdk/schematics",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0-alpha.0",
|
|
4
4
|
"description": "Swagger specification SDK Generator by schematics",
|
|
5
5
|
"typings": "./src/public_api.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@ama-sdk/core": "^9.
|
|
42
|
+
"@ama-sdk/core": "^9.3.0-alpha.0",
|
|
43
43
|
"@angular-devkit/core": "^16.0.5",
|
|
44
44
|
"@angular-devkit/schematics": "^16.0.5",
|
|
45
45
|
"@angular-devkit/schematics-cli": "^16.0.5",
|
|
46
46
|
"@openapitools/openapi-generator-cli": "~2.7.0",
|
|
47
|
-
"@schematics/angular": "^16.0
|
|
47
|
+
"@schematics/angular": "^16.2.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@angular-devkit/core": "~16.2.0",
|
|
51
51
|
"@angular-devkit/schematics": "~16.2.0",
|
|
52
|
-
"@o3r/dev-tools": "^9.
|
|
52
|
+
"@o3r/dev-tools": "^9.3.0-alpha.0",
|
|
53
53
|
"js-yaml": "^4.1.0",
|
|
54
54
|
"minimatch": "^9.0.0",
|
|
55
55
|
"rxjs": "^7.8.1",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"tslib": "^2.5.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@ama-sdk/core": "^9.
|
|
61
|
+
"@ama-sdk/core": "^9.3.0-alpha.0",
|
|
62
62
|
"@angular-devkit/schematics-cli": "~16.2.0",
|
|
63
63
|
"@angular-eslint/eslint-plugin": "~16.1.0",
|
|
64
64
|
"@angular/cli": "~16.2.0",
|
|
65
|
-
"@nx/jest": "~16.
|
|
66
|
-
"@o3r/build-helpers": "^9.
|
|
67
|
-
"@o3r/eslint-plugin": "^9.
|
|
68
|
-
"@o3r/schematics": "^9.
|
|
65
|
+
"@nx/jest": "~16.7.0",
|
|
66
|
+
"@o3r/build-helpers": "^9.3.0-alpha.0",
|
|
67
|
+
"@o3r/eslint-plugin": "^9.3.0-alpha.0",
|
|
68
|
+
"@o3r/schematics": "^9.3.0-alpha.0",
|
|
69
69
|
"@openapitools/openapi-generator-cli": "~2.7.0",
|
|
70
70
|
"@schematics/angular": "~16.2.0",
|
|
71
71
|
"@types/jest": "~29.5.2",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"eslint": "^8.42.0",
|
|
82
82
|
"eslint-import-resolver-node": "^0.3.4",
|
|
83
83
|
"eslint-plugin-jest": "~27.2.3",
|
|
84
|
-
"eslint-plugin-jsdoc": "~46.
|
|
84
|
+
"eslint-plugin-jsdoc": "~46.5.0",
|
|
85
85
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
86
86
|
"eslint-plugin-unicorn": "^47.0.0",
|
|
87
87
|
"isomorphic-fetch": "~3.0.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"jest-junit": "~16.0.0",
|
|
90
90
|
"mem-fs": "^2.2.1",
|
|
91
91
|
"npm-run-all": "^4.1.5",
|
|
92
|
-
"nx": "~16.
|
|
92
|
+
"nx": "~16.7.0",
|
|
93
93
|
"onchange": "^7.0.2",
|
|
94
94
|
"pid-from-port": "^1.1.3",
|
|
95
95
|
"semver": "^7.5.2",
|
|
Binary file
|
|
Binary file
|
|
@@ -83,7 +83,7 @@ function ngGenerateTypescriptSDK(options) {
|
|
|
83
83
|
* @param _context
|
|
84
84
|
*/
|
|
85
85
|
const updateSpec = (tree, _context) => {
|
|
86
|
-
const readmeFile = path.join(targetPath, 'readme.md');
|
|
86
|
+
const readmeFile = path.posix.join(targetPath, 'readme.md');
|
|
87
87
|
const specContent = (0, node_fs_1.readFileSync)(specPath).toString();
|
|
88
88
|
if (tree.exists(readmeFile)) {
|
|
89
89
|
const swaggerVersion = /version: ([0-9]+\.[0-9]+\.[0-9]+)/.exec(specContent);
|
|
@@ -92,11 +92,11 @@ function ngGenerateTypescriptSDK(options) {
|
|
|
92
92
|
tree.overwrite(readmeFile, readmeContent.replace(/Based on Swagger spec .*/i, `Based on Swagger spec ${swaggerVersion[1]}`));
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
if (tree.exists(path.join(targetPath, 'swagger-spec.yaml'))) {
|
|
96
|
-
tree.overwrite(path.join(targetPath, 'swagger-spec.yaml'), specContent);
|
|
95
|
+
if (tree.exists(path.posix.join(targetPath, 'swagger-spec.yaml'))) {
|
|
96
|
+
tree.overwrite(path.posix.join(targetPath, 'swagger-spec.yaml'), specContent);
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
|
-
tree.create(path.join(targetPath, 'swagger-spec.yaml'), specContent);
|
|
99
|
+
tree.create(path.posix.join(targetPath, 'swagger-spec.yaml'), specContent);
|
|
100
100
|
}
|
|
101
101
|
return () => tree;
|
|
102
102
|
};
|
|
@@ -106,7 +106,7 @@ function ngGenerateTypescriptSDK(options) {
|
|
|
106
106
|
const packageOpenApiSupportedVersion = packageJsonFile.openApiSupportedVersion?.replace(/\^|~/, '');
|
|
107
107
|
let openApiVersion = '';
|
|
108
108
|
try {
|
|
109
|
-
openApiVersion = tree.readJson(path.join(targetPath, 'openapitools.json'))?.['generator-cli']?.version;
|
|
109
|
+
openApiVersion = tree.readJson(path.posix.join(targetPath, 'openapitools.json'))?.['generator-cli']?.version;
|
|
110
110
|
}
|
|
111
111
|
catch {
|
|
112
112
|
context.logger.warn('No openapitools.json file found in the project');
|
|
Binary file
|
|
Binary file
|
|
@@ -9,8 +9,8 @@ module.exports = {
|
|
|
9
9
|
['jest-junit', { outputDirectory: '<rootDir>/dist-test', suiteName: '@<%=projectName%>/<%=projectPackageName%> unit tests' }]
|
|
10
10
|
],
|
|
11
11
|
moduleNameMapper: {
|
|
12
|
-
'^@<%=projectName%>/<%=projectPackageName%>$': ['<rootDir>/
|
|
13
|
-
'^@<%=projectName%>/<%=projectPackageName%>/(.*)$': ['<rootDir>/
|
|
12
|
+
'^@<%=projectName%>/<%=projectPackageName%>$': ['<rootDir>/src'],
|
|
13
|
+
'^@<%=projectName%>/<%=projectPackageName%>/(.*)$': ['<rootDir>/src/$1'],
|
|
14
14
|
},
|
|
15
15
|
transform: {
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|