@o3r/core 11.0.0-prerelease.9 → 11.1.0-prerelease.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 +39 -40
- package/schematics/rule-factories/otter-environment/index.d.ts +0 -1
- package/schematics/rule-factories/otter-environment/index.d.ts.map +1 -1
- package/schematics/rule-factories/otter-environment/index.js +5 -10
- package/schematics/rule-factories/store/index.d.ts.map +1 -1
- package/schematics/rule-factories/store/index.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/core",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0-prerelease.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,26 +12,24 @@
|
|
|
12
12
|
"default": "./src/public_api.js",
|
|
13
13
|
"types": "./src/public_api.d.ts",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular-devkit/architect": "~0.
|
|
16
|
-
"@angular-devkit/core": "~
|
|
17
|
-
"@angular-devkit/schematics": "~
|
|
18
|
-
"@angular/cli": "~
|
|
19
|
-
"@angular/common": "~
|
|
20
|
-
"@angular/compiler-cli": "~
|
|
21
|
-
"@angular/core": "~
|
|
22
|
-
"@angular/forms": "~
|
|
23
|
-
"@angular/platform-browser-dynamic": "~
|
|
24
|
-
"@angular/router": "~
|
|
25
|
-
"@ngrx/entity": "~
|
|
26
|
-
"@ngrx/store": "~
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@schematics/angular": "~17.3.0",
|
|
15
|
+
"@angular-devkit/architect": "~0.1800.0",
|
|
16
|
+
"@angular-devkit/core": "~18.0.0",
|
|
17
|
+
"@angular-devkit/schematics": "~18.0.0",
|
|
18
|
+
"@angular/cli": "~18.0.0",
|
|
19
|
+
"@angular/common": "~18.0.0",
|
|
20
|
+
"@angular/compiler-cli": "~18.0.0",
|
|
21
|
+
"@angular/core": "~18.0.0",
|
|
22
|
+
"@angular/forms": "~18.0.0",
|
|
23
|
+
"@angular/platform-browser-dynamic": "~18.0.0",
|
|
24
|
+
"@angular/router": "~18.0.0",
|
|
25
|
+
"@ngrx/entity": "~18.0.0",
|
|
26
|
+
"@ngrx/store": "~18.0.0",
|
|
27
|
+
"@nx/angular": "~19.3.0",
|
|
28
|
+
"@o3r/telemetry": "^11.1.0-prerelease.0",
|
|
29
|
+
"@schematics/angular": "~18.0.0",
|
|
31
30
|
"chokidar": "^3.5.2",
|
|
32
31
|
"globby": "^11.1.0",
|
|
33
32
|
"rxjs": "^7.8.1",
|
|
34
|
-
"semver": "^7.5.2",
|
|
35
33
|
"typescript": "~5.4.2"
|
|
36
34
|
},
|
|
37
35
|
"peerDependenciesMeta": {
|
|
@@ -44,57 +42,54 @@
|
|
|
44
42
|
"@ngrx/store": {
|
|
45
43
|
"optional": true
|
|
46
44
|
},
|
|
47
|
-
"@nrwl/devkit": {
|
|
48
|
-
"optional": true
|
|
49
|
-
},
|
|
50
45
|
"@nx/angular": {
|
|
51
46
|
"optional": true
|
|
52
47
|
},
|
|
53
48
|
"@o3r/telemetry": {
|
|
54
49
|
"optional": true
|
|
55
50
|
},
|
|
56
|
-
"
|
|
51
|
+
"@schematics/angular": {
|
|
57
52
|
"optional": true
|
|
58
53
|
},
|
|
59
|
-
"
|
|
54
|
+
"chokidar": {
|
|
60
55
|
"optional": true
|
|
61
56
|
},
|
|
62
|
-
"
|
|
57
|
+
"globby": {
|
|
63
58
|
"optional": true
|
|
64
59
|
}
|
|
65
60
|
},
|
|
66
61
|
"dependencies": {
|
|
67
|
-
"@o3r/schematics": "^11.
|
|
62
|
+
"@o3r/schematics": "^11.1.0-prerelease.0",
|
|
68
63
|
"tslib": "^2.6.2",
|
|
69
|
-
"uuid": "^
|
|
64
|
+
"uuid": "^10.0.0"
|
|
70
65
|
},
|
|
71
66
|
"generatorDependencies": {
|
|
72
|
-
"@angular-eslint/eslint-plugin": "~
|
|
73
|
-
"@angular/material": "~
|
|
74
|
-
"@ngrx/router-store": "~
|
|
75
|
-
"@ngrx/effects": "~
|
|
76
|
-
"@ngrx/store-devtools": "~
|
|
77
|
-
"@o3r/store-sync": "^11.
|
|
67
|
+
"@angular-eslint/eslint-plugin": "~18.0.0",
|
|
68
|
+
"@angular/material": "~18.0.0",
|
|
69
|
+
"@ngrx/router-store": "~18.0.0",
|
|
70
|
+
"@ngrx/effects": "~18.0.0",
|
|
71
|
+
"@ngrx/store-devtools": "~18.0.0",
|
|
72
|
+
"@o3r/store-sync": "^11.1.0-prerelease.0",
|
|
78
73
|
"@types/jest": "~29.5.2",
|
|
79
|
-
"nx": "~
|
|
74
|
+
"nx": "~19.3.0",
|
|
80
75
|
"@typescript-eslint/parser": "^7.2.0",
|
|
81
|
-
"@stylistic/eslint-plugin-ts": "^
|
|
76
|
+
"@stylistic/eslint-plugin-ts": "^2.0.0",
|
|
82
77
|
"cpy-cli": "^5.0.0",
|
|
83
78
|
"eslint": "^8.57.0",
|
|
84
|
-
"@nx/eslint-plugin": "~
|
|
79
|
+
"@nx/eslint-plugin": "~19.3.0",
|
|
85
80
|
"jsonc-eslint-parser": "~2.4.0",
|
|
86
81
|
"eslint-import-resolver-node": "^0.3.9",
|
|
87
|
-
"eslint-plugin-jest": "~
|
|
88
|
-
"eslint-plugin-jsdoc": "~48.
|
|
82
|
+
"eslint-plugin-jest": "~28.6.0",
|
|
83
|
+
"eslint-plugin-jsdoc": "~48.4.0",
|
|
89
84
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
90
|
-
"eslint-plugin-unicorn": "^
|
|
85
|
+
"eslint-plugin-unicorn": "^54.0.0",
|
|
91
86
|
"jest": "~29.7.0",
|
|
92
87
|
"jest-junit": "~16.0.0",
|
|
93
88
|
"jest-preset-angular": "~14.1.0",
|
|
94
89
|
"zone.js": "~0.14.2"
|
|
95
90
|
},
|
|
96
91
|
"engines": {
|
|
97
|
-
"node": "
|
|
92
|
+
"node": "^18.19.1 || ^20.11.1 || >=22.0.0"
|
|
98
93
|
},
|
|
99
94
|
"schematics": "./collection.json",
|
|
100
95
|
"builders": "./builders.json",
|
|
@@ -186,6 +181,7 @@
|
|
|
186
181
|
},
|
|
187
182
|
{
|
|
188
183
|
"name": "Stephane Dalle",
|
|
184
|
+
"url": "https://github.com/sdalle-1A",
|
|
189
185
|
"email": "sdalle-1A@users.noreply.github.com"
|
|
190
186
|
},
|
|
191
187
|
{
|
|
@@ -220,7 +216,10 @@
|
|
|
220
216
|
}
|
|
221
217
|
],
|
|
222
218
|
"bugs": "https://github.com/AmadeusITGroup/otter/issues",
|
|
223
|
-
"repository":
|
|
219
|
+
"repository": {
|
|
220
|
+
"type": "git",
|
|
221
|
+
"url": "git+https://github.com/AmadeusITGroup/otter.git"
|
|
222
|
+
},
|
|
224
223
|
"license": "BSD-3-Clause",
|
|
225
224
|
"homepage": "https://amadeusitgroup.github.io/otter/"
|
|
226
225
|
}
|
|
@@ -5,7 +5,6 @@ import { Rule } from '@angular-devkit/schematics';
|
|
|
5
5
|
* @param rootPath @see RuleFactory.rootPath
|
|
6
6
|
* @param options.projectName
|
|
7
7
|
* @param options.enableStorybook
|
|
8
|
-
* @param options.enablePlaywright
|
|
9
8
|
* @param options.enableStyling
|
|
10
9
|
* @param options.enableAnalytics
|
|
11
10
|
* @param options.workingDirectory
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/otter-environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAOjF
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/otter-environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAOjF;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE;IACP,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,EACD,SAAS,EAAE,MAAM,GAChB,IAAI,CA8IN"}
|
|
@@ -12,7 +12,6 @@ const node_path_1 = require("node:path");
|
|
|
12
12
|
* @param rootPath @see RuleFactory.rootPath
|
|
13
13
|
* @param options.projectName
|
|
14
14
|
* @param options.enableStorybook
|
|
15
|
-
* @param options.enablePlaywright
|
|
16
15
|
* @param options.enableStyling
|
|
17
16
|
* @param options.enableAnalytics
|
|
18
17
|
* @param options.workingDirectory
|
|
@@ -32,13 +31,9 @@ function updateOtterEnvironmentAdapter(options, _rootPath) {
|
|
|
32
31
|
context.logger.error('No application detected, the Otter environment will not be setup');
|
|
33
32
|
return tree;
|
|
34
33
|
}
|
|
35
|
-
const packageJson = (0, schematics_2.readPackageJson)(tree, workspaceProject);
|
|
36
|
-
const scope = packageJson.name.split('/')[0];
|
|
37
34
|
workspace.cli = workspace.cli || {};
|
|
35
|
+
workspaceProject.schematics ||= {};
|
|
38
36
|
if (workspaceProject.projectType === 'application') {
|
|
39
|
-
if (!workspaceProject.schematics) {
|
|
40
|
-
workspaceProject.schematics = {};
|
|
41
|
-
}
|
|
42
37
|
schematics_2.OTTER_ITEM_TYPES.forEach((item) => {
|
|
43
38
|
const path = schematics_2.TYPES_DEFAULT_FOLDER[item].app;
|
|
44
39
|
if (path) {
|
|
@@ -64,11 +59,11 @@ function updateOtterEnvironmentAdapter(options, _rootPath) {
|
|
|
64
59
|
else {
|
|
65
60
|
workspace.cli.packageManager ||= (0, schematics_2.getPackageManager)();
|
|
66
61
|
schematics_2.OTTER_ITEM_TYPES.forEach((item) => {
|
|
67
|
-
const path = schematics_2.TYPES_DEFAULT_FOLDER[item].lib
|
|
62
|
+
const path = schematics_2.TYPES_DEFAULT_FOLDER[item].lib;
|
|
68
63
|
if (path) {
|
|
69
|
-
|
|
70
|
-
path,
|
|
71
|
-
...(
|
|
64
|
+
workspaceProject.schematics[item] = {
|
|
65
|
+
path: node_path_1.posix.join(workspaceProject.root, path),
|
|
66
|
+
...(workspaceProject.schematics[item] || {})
|
|
72
67
|
};
|
|
73
68
|
}
|
|
74
69
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AACjF,OAAO,EASL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAkBnD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,uBAAuB,EAAE,wBAAwB,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,EACjK,WAAW,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AACjF,OAAO,EASL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAkBnD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,uBAAuB,EAAE,wBAAwB,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,EACjK,WAAW,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,GAAG,IAAI,CAoIrD"}
|
|
@@ -44,14 +44,15 @@ function updateStore(options, projectType) {
|
|
|
44
44
|
/**
|
|
45
45
|
* Change package.json with the new dependencies
|
|
46
46
|
* @param tree
|
|
47
|
+
* @param context
|
|
47
48
|
*/
|
|
48
|
-
const updatePackageJson = (tree) => {
|
|
49
|
+
const updatePackageJson = (tree, context) => {
|
|
49
50
|
const workspaceConfig = (0, schematics_2.getWorkspaceConfig)(tree);
|
|
50
51
|
const workspaceProject = options.projectName && workspaceConfig?.projects?.[options.projectName] || undefined;
|
|
51
52
|
const appDeps = [ngrxEffectsDep, ngrxRouterStore, ngrxRouterStoreDevToolDep];
|
|
52
53
|
const corePeerDeps = [ngrxEntityDep, ngrxStoreDep];
|
|
53
54
|
const dependenciesList = projectType === 'application' ? [...corePeerDeps, ...appDeps] : [...corePeerDeps];
|
|
54
|
-
Object.entries((0, schematics_2.getExternalDependenciesVersionRange)(dependenciesList, corePackageJsonPath)).forEach(([dep, range]) => {
|
|
55
|
+
Object.entries((0, schematics_2.getExternalDependenciesVersionRange)(dependenciesList, corePackageJsonPath, context.logger)).forEach(([dep, range]) => {
|
|
55
56
|
options.dependenciesSetupConfig.dependencies[dep] = {
|
|
56
57
|
inManifest: [{
|
|
57
58
|
range,
|