@ama-sdk/schematics 10.0.0-prerelease.3 → 10.0.0-prerelease.30
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 +14 -8
- package/schematics/api-extension/index.d.ts +1 -1
- package/schematics/api-extension/index.d.ts.map +1 -1
- package/schematics/api-extension/index.js +7 -2
- package/schematics/java/client-core/index.d.ts +1 -1
- package/schematics/java/client-core/index.d.ts.map +1 -1
- package/schematics/java/client-core/index.js +7 -2
- 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/ng-add/index.d.ts +1 -2
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +6 -3
- package/schematics/typescript/core/index.d.ts +1 -1
- package/schematics/typescript/core/index.d.ts.map +1 -1
- package/schematics/typescript/core/index.js +7 -2
- 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/mock/index.d.ts +1 -1
- package/schematics/typescript/mock/index.d.ts.map +1 -1
- package/schematics/typescript/mock/index.js +7 -2
- package/schematics/typescript/shell/index.d.ts +2 -1
- package/schematics/typescript/shell/index.d.ts.map +1 -1
- package/schematics/typescript/shell/index.js +10 -3
- package/schematics/typescript/shell/templates/base/package.json.template +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-sdk/schematics",
|
|
3
|
-
"version": "10.0.0-prerelease.
|
|
3
|
+
"version": "10.0.0-prerelease.30",
|
|
4
4
|
"description": "Swagger specification SDK Generator by schematics",
|
|
5
5
|
"typings": "./src/public_api.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
"@angular-devkit/schematics-cli": {
|
|
35
35
|
"optional": true
|
|
36
36
|
},
|
|
37
|
+
"@angular/cli": {
|
|
38
|
+
"optional": true
|
|
39
|
+
},
|
|
37
40
|
"@angular/compiler": {
|
|
38
41
|
"optional": true
|
|
39
42
|
},
|
|
@@ -42,11 +45,13 @@
|
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
47
|
"peerDependencies": {
|
|
45
|
-
"@ama-sdk/core": "^10.0.0-prerelease.
|
|
48
|
+
"@ama-sdk/core": "^10.0.0-prerelease.30",
|
|
46
49
|
"@angular-devkit/core": "~17.0.0",
|
|
47
50
|
"@angular-devkit/schematics": "~17.0.0",
|
|
48
51
|
"@angular-devkit/schematics-cli": "^17.0.1",
|
|
49
|
-
"@
|
|
52
|
+
"@angular/cli": "^17.0.1",
|
|
53
|
+
"@o3r/schematics": "^10.0.0-prerelease.30",
|
|
54
|
+
"@openapitools/openapi-generator-cli": "~2.9.0",
|
|
50
55
|
"@schematics/angular": "~17.0.0"
|
|
51
56
|
},
|
|
52
57
|
"dependencies": {
|
|
@@ -60,16 +65,16 @@
|
|
|
60
65
|
"tslib": "^2.5.3"
|
|
61
66
|
},
|
|
62
67
|
"devDependencies": {
|
|
63
|
-
"@ama-sdk/core": "^10.0.0-prerelease.
|
|
68
|
+
"@ama-sdk/core": "^10.0.0-prerelease.30",
|
|
64
69
|
"@angular-devkit/schematics-cli": "~17.0.3",
|
|
65
70
|
"@angular-eslint/eslint-plugin": "~17.2.0",
|
|
66
71
|
"@angular/cli": "~17.0.3",
|
|
67
72
|
"@nx/eslint-plugin": "~17.2.0",
|
|
68
73
|
"@nx/jest": "~17.2.0",
|
|
69
|
-
"@o3r/build-helpers": "^10.0.0-prerelease.
|
|
70
|
-
"@o3r/eslint-plugin": "^10.0.0-prerelease.
|
|
71
|
-
"@o3r/schematics": "^10.0.0-prerelease.
|
|
72
|
-
"@openapitools/openapi-generator-cli": "~2.
|
|
74
|
+
"@o3r/build-helpers": "^10.0.0-prerelease.30",
|
|
75
|
+
"@o3r/eslint-plugin": "^10.0.0-prerelease.30",
|
|
76
|
+
"@o3r/schematics": "^10.0.0-prerelease.30",
|
|
77
|
+
"@openapitools/openapi-generator-cli": "~2.9.0",
|
|
73
78
|
"@schematics/angular": "~17.0.3",
|
|
74
79
|
"@types/jest": "~29.5.2",
|
|
75
80
|
"@types/js-yaml": "^4.0.5",
|
|
@@ -100,6 +105,7 @@
|
|
|
100
105
|
"pid-from-port": "^1.1.3",
|
|
101
106
|
"semver": "^7.5.2",
|
|
102
107
|
"ts-jest": "~29.1.1",
|
|
108
|
+
"ts-node": "~10.9.1",
|
|
103
109
|
"type-fest": "^4.3.1",
|
|
104
110
|
"typescript": "~5.2.2"
|
|
105
111
|
},
|
|
@@ -4,5 +4,5 @@ import { NgGenerateApiExtensionSchematicsSchema } from './schema';
|
|
|
4
4
|
* Generate a Extension of a API core definition
|
|
5
5
|
* @param options
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const ngGenerateApiExtension: (opts: NgGenerateApiExtensionSchematicsSchema) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/api-extension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,IAAI,EAGL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/api-extension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,sCAAsC,EAAE,MAAM,UAAU,CAAC;AAmBlE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,wDAAkE,CAAC"}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateApiExtension = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_2 = require("@o3r/schematics");
|
|
5
6
|
/**
|
|
6
7
|
* Generate a Extension of a API core definition
|
|
7
8
|
* @param options
|
|
8
9
|
*/
|
|
9
|
-
function
|
|
10
|
+
function ngGenerateApiExtensionFn(options) {
|
|
10
11
|
return (tree) => (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./templates'), [
|
|
11
12
|
(0, schematics_1.template)({
|
|
12
13
|
...options,
|
|
@@ -16,5 +17,9 @@ function ngGenerateApiExtension(options) {
|
|
|
16
17
|
(0, schematics_1.renameTemplateFiles)()
|
|
17
18
|
]), schematics_1.MergeStrategy.Overwrite);
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Generate a Extension of a API core definition
|
|
22
|
+
* @param options
|
|
23
|
+
*/
|
|
24
|
+
exports.ngGenerateApiExtension = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngGenerateApiExtensionFn);
|
|
20
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,5 +4,5 @@ import { NgGenerateJavaClientCoreSchematicsSchema } from './schema';
|
|
|
4
4
|
* Generate a Java client SDK source code base on swagger specification
|
|
5
5
|
* @param options
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const ngGenerateJavaClientCore: (opts: NgGenerateJavaClientCoreSchematicsSchema) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/java/client-core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/java/client-core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EAAE,wCAAwC,EAAE,MAAM,UAAU,CAAC;AAgFpE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,0DAAoE,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateJavaClientCore = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_2 = require("@o3r/schematics");
|
|
5
6
|
const node_fs_1 = require("node:fs");
|
|
6
7
|
const path = require("node:path");
|
|
7
8
|
const tree_glob_1 = require("../../helpers/tree-glob");
|
|
@@ -12,7 +13,7 @@ const jarBasePath = path.resolve(__dirname, 'swagger-codegen-java-client', 'targ
|
|
|
12
13
|
* Generate a Java client SDK source code base on swagger specification
|
|
13
14
|
* @param options
|
|
14
15
|
*/
|
|
15
|
-
function
|
|
16
|
+
function ngGenerateJavaClientCoreFn(options) {
|
|
16
17
|
const specPath = path.resolve(process.cwd(), options.specPath);
|
|
17
18
|
/**
|
|
18
19
|
* rule to clear previous SDK generation
|
|
@@ -73,5 +74,9 @@ function ngGenerateJavaClientCore(options) {
|
|
|
73
74
|
})
|
|
74
75
|
]);
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Generate a Java client SDK source code base on swagger specification
|
|
79
|
+
* @param options
|
|
80
|
+
*/
|
|
81
|
+
exports.ngGenerateJavaClientCore = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngGenerateJavaClientCoreFn);
|
|
77
82
|
//# sourceMappingURL=index.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,6 @@ import { Rule } from '@angular-devkit/schematics';
|
|
|
7
7
|
export declare const updatePackageJsonScripts: Rule;
|
|
8
8
|
/**
|
|
9
9
|
* Add Otter ama-sdk-schematics to a Project
|
|
10
|
-
* @param options
|
|
11
10
|
*/
|
|
12
|
-
export declare
|
|
11
|
+
export declare const ngAdd: (opts: unknown) => Rule;
|
|
13
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,IAAI,EAA0B,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAapG;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,IAkDtC,CAAC;AA2GF;;GAEG;AACH,eAAO,MAAM,KAAK,yBAAiD,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ngAdd = exports.updatePackageJsonScripts = void 0;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const schematics_2 = require("@o3r/schematics");
|
|
6
7
|
const path = require("node:path");
|
|
7
8
|
const node_fs_1 = require("node:fs");
|
|
8
9
|
const rxjs_1 = require("rxjs");
|
|
@@ -138,9 +139,8 @@ const registerPackageSchematics = async (tree, context) => {
|
|
|
138
139
|
};
|
|
139
140
|
/**
|
|
140
141
|
* Add Otter ama-sdk-schematics to a Project
|
|
141
|
-
* @param options
|
|
142
142
|
*/
|
|
143
|
-
function
|
|
143
|
+
function ngAddFn() {
|
|
144
144
|
return (tree, context) => (0, schematics_1.chain)([
|
|
145
145
|
registerPackageSchematics,
|
|
146
146
|
exports.updatePackageJsonScripts,
|
|
@@ -151,5 +151,8 @@ function ngAdd() {
|
|
|
151
151
|
}
|
|
152
152
|
])(tree, context);
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
/**
|
|
155
|
+
* Add Otter ama-sdk-schematics to a Project
|
|
156
|
+
*/
|
|
157
|
+
exports.ngAdd = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngAddFn);
|
|
155
158
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,5 +4,5 @@ import { NgGenerateTypescriptSDKCoreSchematicsSchema } from './schema';
|
|
|
4
4
|
* Generate a typescript SDK source code base on swagger specification
|
|
5
5
|
* @param options
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const ngGenerateTypescriptSDK: (opts: NgGenerateTypescriptSDKCoreSchematicsSchema) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAUpC,OAAO,EAAE,2CAA2C,EAAE,MAAM,UAAU,CAAC;AAoIvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,6DAAmE,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateTypescriptSDK = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_2 = require("@o3r/schematics");
|
|
5
6
|
const node_fs_1 = require("node:fs");
|
|
6
7
|
const path = require("node:path");
|
|
7
8
|
const semver = require("semver");
|
|
@@ -21,7 +22,7 @@ const getPathObjectTemplate = (pathObj) => {
|
|
|
21
22
|
* Generate a typescript SDK source code base on swagger specification
|
|
22
23
|
* @param options
|
|
23
24
|
*/
|
|
24
|
-
function
|
|
25
|
+
function ngGenerateTypescriptSDKFn(options) {
|
|
25
26
|
const specPath = path.resolve(process.cwd(), options.specPath);
|
|
26
27
|
const targetPath = options.directory || '';
|
|
27
28
|
const globalProperty = options.globalProperty;
|
|
@@ -123,5 +124,9 @@ function ngGenerateTypescriptSDK(options) {
|
|
|
123
124
|
runGeneratorRule
|
|
124
125
|
]);
|
|
125
126
|
}
|
|
126
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Generate a typescript SDK source code base on swagger specification
|
|
129
|
+
* @param options
|
|
130
|
+
*/
|
|
131
|
+
exports.ngGenerateTypescriptSDK = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngGenerateTypescriptSDKFn);
|
|
127
132
|
//# sourceMappingURL=index.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -9,5 +9,5 @@ export declare function getDasherizeModelName(modelName: string): string;
|
|
|
9
9
|
* Add mock
|
|
10
10
|
* @param options
|
|
11
11
|
*/
|
|
12
|
-
export declare
|
|
12
|
+
export declare const ngGenerateMock: (opts: NgGenerateMockSchematicsSchema) => Rule;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/mock/index.ts"],"names":[],"mappings":"AACA,OAAO,EAML,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAC,8BAA8B,EAAC,MAAM,UAAU,CAAC;AA+BxD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE/D;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/mock/index.ts"],"names":[],"mappings":"AACA,OAAO,EAML,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAC,8BAA8B,EAAC,MAAM,UAAU,CAAC;AA+BxD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE/D;AAgDD;;;GAGG;AACH,eAAO,MAAM,cAAc,gDAA0D,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ngGenerateMock = exports.getDasherizeModelName = void 0;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const schematics_2 = require("@o3r/schematics");
|
|
6
7
|
const path = require("node:path");
|
|
7
8
|
/**
|
|
8
9
|
* @param singular
|
|
@@ -43,7 +44,7 @@ exports.getDasherizeModelName = getDasherizeModelName;
|
|
|
43
44
|
* Add mock
|
|
44
45
|
* @param options
|
|
45
46
|
*/
|
|
46
|
-
function
|
|
47
|
+
function ngGenerateMockFn(options) {
|
|
47
48
|
const dasherizeModelName = getDasherizeModelName(options.apiModel);
|
|
48
49
|
const generateRootBarrel = (tree) => {
|
|
49
50
|
let currentComponentIndex = '';
|
|
@@ -78,5 +79,9 @@ function ngGenerateMock(options) {
|
|
|
78
79
|
];
|
|
79
80
|
return (0, schematics_1.chain)(rules);
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Add mock
|
|
84
|
+
* @param options
|
|
85
|
+
*/
|
|
86
|
+
exports.ngGenerateMock = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngGenerateMockFn);
|
|
82
87
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
2
|
import type { NgGenerateTypescriptSDKShellSchematicsSchema } from './schema';
|
|
3
3
|
/**
|
|
4
|
+
* Generate Typescript SDK shell
|
|
4
5
|
* @param options
|
|
5
6
|
*/
|
|
6
|
-
export declare
|
|
7
|
+
export declare const ngGenerateTypescriptSDK: (opts: NgGenerateTypescriptSDKShellSchematicsSchema) => Rule;
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/shell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAIL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/shell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAIL,MAAM,4BAA4B,CAAC;AAMpC,OAAO,KAAK,EAAC,4CAA4C,EAAC,MAAM,UAAU,CAAC;AAiG3E;;;GAGG;AACH,eAAO,MAAM,uBAAuB,8DAAmE,CAAC"}
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateTypescriptSDK = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_2 = require("@o3r/schematics");
|
|
5
6
|
const js_yaml_1 = require("js-yaml");
|
|
6
7
|
const node_path_1 = require("node:path");
|
|
7
8
|
const node_install_1 = require("../../helpers/node-install");
|
|
8
9
|
const read_package_1 = require("../../helpers/read-package");
|
|
9
10
|
/**
|
|
11
|
+
* Generate Typescript SDK shell
|
|
10
12
|
* @param options
|
|
11
13
|
*/
|
|
12
|
-
function
|
|
14
|
+
function ngGenerateTypescriptSDKFn(options) {
|
|
13
15
|
const installRule = (_tree, context) => {
|
|
14
16
|
const workingDirectory = options.directory ? ((0, node_path_1.isAbsolute)(options.directory) ? (0, node_path_1.relative)(process.cwd(), options.directory) : options.directory) : '.';
|
|
15
17
|
const installTask = new node_install_1.NpmInstall({ workingDirectory, packageManager: options.packageManager, allowScripts: false });
|
|
@@ -36,7 +38,8 @@ function ngGenerateTypescriptSDK(options) {
|
|
|
36
38
|
'ts-jest': amaSdkSchematicsPackageJson.devDependencies['ts-jest'],
|
|
37
39
|
'globby': amaSdkSchematicsPackageJson.devDependencies.globby,
|
|
38
40
|
'typescript': amaSdkSchematicsPackageJson.devDependencies.typescript,
|
|
39
|
-
'@openapitools/openapi-generator-cli': amaSdkSchematicsPackageJson.devDependencies['@openapitools/openapi-generator-cli']
|
|
41
|
+
'@openapitools/openapi-generator-cli': amaSdkSchematicsPackageJson.devDependencies['@openapitools/openapi-generator-cli'],
|
|
42
|
+
'rxjs': amaSdkSchematicsPackageJson.dependencies.rxjs
|
|
40
43
|
};
|
|
41
44
|
const openApiSupportedVersion = typeof amaSdkSchematicsPackageJson.openApiSupportedVersion === 'string' &&
|
|
42
45
|
amaSdkSchematicsPackageJson.openApiSupportedVersion.replace(/\^|~/, '');
|
|
@@ -90,5 +93,9 @@ function ngGenerateTypescriptSDK(options) {
|
|
|
90
93
|
...(options.skipInstall ? [] : [installRule])
|
|
91
94
|
]);
|
|
92
95
|
}
|
|
93
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Generate Typescript SDK shell
|
|
98
|
+
* @param options
|
|
99
|
+
*/
|
|
100
|
+
exports.ngGenerateTypescriptSDK = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngGenerateTypescriptSDKFn);
|
|
94
101
|
//# sourceMappingURL=index.js.map
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"clean": "rimraf test/ test-dev/ dist/ dist-dev/ dist-test/ build/",
|
|
33
|
-
"lint:ci": "eslint
|
|
34
|
-
"lint": "eslint
|
|
33
|
+
"lint:ci": "eslint \"**/*[jt]s\" --quiet --format junit --output-file ./dist-lint/result.xml",
|
|
34
|
+
"lint": "eslint \"**/*[jt]s\" --cache",
|
|
35
35
|
"start": "tsc-watch -b tsconfigs/esm2020 --noClear --onFirstSuccess \"<%=packageManager%> run files:pack --watch\"",
|
|
36
36
|
"build": "<%=packageManager%> run build:cjs && <%=packageManager%> run build:esm2015 && <%=packageManager%> run build:esm2020 && <%=packageManager%> run files:pack",
|
|
37
37
|
"build:cjs": "swc src -d dist/cjs -C module.type=commonjs -q",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"@angular-eslint/eslint-plugin-template": "<%= angularEslintVersion %>",
|
|
72
72
|
"@angular-eslint/utils": "<%= angularEslintVersion %>",
|
|
73
73
|
"@angular/compiler": "<%= angularVersion %>",
|
|
74
|
+
"@angular/cli": "<%= angularVersion %>",
|
|
74
75
|
"@commitlint/cli": "^17.0.0",
|
|
75
76
|
"@schematics/angular": "<%= angularVersion %>",
|
|
76
77
|
"@commitlint/config-conventional": "^17.0.0",
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
"lint-staged": "^13.0.0",
|
|
103
104
|
"minimist": "^1.2.6",
|
|
104
105
|
"rimraf": "^5.0.1",
|
|
106
|
+
"rxjs": "<%= versions['rxjs'] %>",
|
|
105
107
|
"standard-version": "^9.0.0",
|
|
106
108
|
"ts-jest": "<%= versions['ts-jest'] %>",
|
|
107
109
|
"typedoc": "~0.25.0",
|