@o3r/amaterasu-api-spec 10.0.0-next.8 → 11.0.0-next.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/amaterasu-api-spec",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-next.0",
|
|
4
4
|
"description": "Commands relative to the Digital Apis",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
@@ -17,38 +17,39 @@
|
|
|
17
17
|
"des"
|
|
18
18
|
],
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ama-terasu/core": "^
|
|
21
|
-
"@angular-eslint/eslint-plugin": "~
|
|
22
|
-
"@nx/
|
|
23
|
-
"@
|
|
24
|
-
"@o3r/
|
|
25
|
-
"@o3r/eslint-plugin": "^
|
|
20
|
+
"@ama-terasu/core": "^11.0.0-next.0",
|
|
21
|
+
"@angular-eslint/eslint-plugin": "~17.1.0",
|
|
22
|
+
"@nx/eslint-plugin": "~17.1.1",
|
|
23
|
+
"@nx/jest": "~17.1.1",
|
|
24
|
+
"@o3r/build-helpers": "^11.0.0-next.0",
|
|
25
|
+
"@o3r/eslint-plugin": "^11.0.0-next.0",
|
|
26
26
|
"@types/jest": "~29.5.2",
|
|
27
27
|
"@types/js-yaml": "^4.0.5",
|
|
28
|
-
"@types/node": "^
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "
|
|
30
|
-
"@typescript-eslint/parser": "^
|
|
28
|
+
"@types/node": "^20.0.0",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "6.11.0",
|
|
30
|
+
"@typescript-eslint/parser": "^6.11.0",
|
|
31
31
|
"eslint": "^8.42.0",
|
|
32
32
|
"eslint-import-resolver-node": "^0.3.4",
|
|
33
|
-
"eslint-plugin-jest": "~27.
|
|
34
|
-
"eslint-plugin-jsdoc": "~
|
|
33
|
+
"eslint-plugin-jest": "~27.6.0",
|
|
34
|
+
"eslint-plugin-jsdoc": "~48.0.0",
|
|
35
35
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
36
|
-
"eslint-plugin-unicorn": "^
|
|
36
|
+
"eslint-plugin-unicorn": "^50.0.0",
|
|
37
37
|
"jest": "~29.7.0",
|
|
38
38
|
"jest-junit": "~16.0.0",
|
|
39
|
-
"
|
|
39
|
+
"jsonc-eslint-parser": "~2.4.0",
|
|
40
|
+
"nx": "~17.1.1",
|
|
40
41
|
"ts-jest": "~29.1.1",
|
|
41
|
-
"typescript": "~5.
|
|
42
|
+
"typescript": "~5.2.2"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"js-yaml": "^4.1.0",
|
|
45
46
|
"tslib": "^2.5.3"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
|
-
"@ama-terasu/core": "^
|
|
49
|
+
"@ama-terasu/core": "^11.0.0-next.0"
|
|
49
50
|
},
|
|
50
51
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
52
|
+
"node": ">=18.0.0",
|
|
52
53
|
"vscode": "^1.22.0"
|
|
53
54
|
},
|
|
54
55
|
"type": "commonjs",
|
|
@@ -115,5 +116,6 @@
|
|
|
115
116
|
],
|
|
116
117
|
"bugs": "https://github.com/AmadeusITGroup/otter/issues",
|
|
117
118
|
"repository": "https://github.com/AmadeusITGroup/otter",
|
|
118
|
-
"license": "BSD-3-Clause"
|
|
119
|
+
"license": "BSD-3-Clause",
|
|
120
|
+
"homepage": "https://amadeusitgroup.github.io/otter/"
|
|
119
121
|
}
|
|
@@ -7,7 +7,6 @@ export interface CreateExtensionOptions {
|
|
|
7
7
|
path: string;
|
|
8
8
|
/**
|
|
9
9
|
* Set default options instead of requiring input
|
|
10
|
-
*
|
|
11
10
|
* @default false
|
|
12
11
|
*/
|
|
13
12
|
yes?: boolean;
|
|
@@ -18,7 +17,6 @@ export interface CreateExtensionOptions {
|
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
19
|
* Create an Otter Extension
|
|
21
|
-
*
|
|
22
20
|
* @param context Context of the command
|
|
23
21
|
* @param options Options
|
|
24
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-extension.command.d.ts","sourceRoot":"","sources":["../../src/create-extension.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAgB,MAAM,kBAAkB,CAAC;AAIzD,sCAAsC;AACtC,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb
|
|
1
|
+
{"version":3,"file":"create-extension.command.d.ts","sourceRoot":"","sources":["../../src/create-extension.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAgB,MAAM,kBAAkB,CAAC;AAIzD,sCAAsC;AACtC,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAmB,OAAO,WAAW,sBAAsB,kBAmCtF,CAAC"}
|
|
@@ -7,7 +7,6 @@ const node_fs_1 = require("node:fs");
|
|
|
7
7
|
const path = require("node:path");
|
|
8
8
|
/**
|
|
9
9
|
* Create an Otter Extension
|
|
10
|
-
*
|
|
11
10
|
* @param context Context of the command
|
|
12
11
|
* @param options Options
|
|
13
12
|
*/
|
|
@@ -17,14 +16,14 @@ const createExtension = async (context, options) => {
|
|
|
17
16
|
const { version } = require(path.resolve(__dirname, '..', 'package.json'));
|
|
18
17
|
const npmrcFile = 'tmp.npmrc';
|
|
19
18
|
const deps = {
|
|
20
|
-
'@ama-sdk/
|
|
19
|
+
'@ama-sdk/schematics': version !== '0.0.0-placeholder' ? version : 'latest',
|
|
21
20
|
yo: 'latest'
|
|
22
21
|
};
|
|
23
22
|
await context.getSpinner('Generating extension module...').fromPromise((async () => {
|
|
24
23
|
await (0, core_1.promiseSpawn)('npm init -y', { cwd, stderrLogger: logger.debug, logger });
|
|
25
24
|
await (0, core_1.promiseSpawn)(`npm install --userconfig ${npmrcFile} --include dev ${Object.entries(deps).map(([n, v]) => `${n}@${v}`).join(' ')}`, { cwd, stderrLogger: logger.debug, logger });
|
|
26
25
|
// eslint-disable-next-line max-len
|
|
27
|
-
await (0, core_1.promiseSpawn)(`npx
|
|
26
|
+
await (0, core_1.promiseSpawn)(`npx -p @angular-devkit/schematics-cli schematics @ama-sdk/schematics:api-extension --name "${options.name}" --core-type ${options.type.replace(/^core-/, '')} --core-version "${options['spec-version']}"`, { cwd, stderrLogger: logger.debug, logger });
|
|
28
27
|
})(),
|
|
29
28
|
// TODO: simplify to the following line when migrated to schematics generation
|
|
30
29
|
// eslint-disable-next-line max-len
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-extension.command.js","sourceRoot":"","sources":["../../src/create-extension.command.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,2CAAyD;AACzD,qCAAyC;AACzC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"create-extension.command.js","sourceRoot":"","sources":["../../src/create-extension.command.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,2CAAyD;AACzD,qCAAyC;AACzC,kCAAkC;AAmBlC;;;;GAIG;AACI,MAAM,eAAe,GAAG,KAAK,EAAE,OAAgB,EAAE,OAA+B,EAAE,EAAE;IACzF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,C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