@o3r/core 12.5.0-prerelease.2 → 12.5.0-prerelease.20
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 +10 -11
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +3 -2
- package/schematics/rule-factories/additional-modules/index.d.ts.map +1 -1
- package/schematics/rule-factories/additional-modules/index.js +16 -18
- package/schematics/rule-factories/store/index.d.ts.map +1 -1
- package/schematics/rule-factories/store/index.js +12 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/core",
|
|
3
|
-
"version": "12.5.0-prerelease.
|
|
3
|
+
"version": "12.5.0-prerelease.20",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@ngrx/entity": "^19.0.0",
|
|
40
40
|
"@ngrx/store": "^19.0.0",
|
|
41
41
|
"@nx/angular": "~20.8.0",
|
|
42
|
-
"@o3r/telemetry": "^12.5.0-prerelease.
|
|
42
|
+
"@o3r/telemetry": "^12.5.0-prerelease.20",
|
|
43
43
|
"@schematics/angular": "^19.0.0",
|
|
44
44
|
"chokidar": "^4.0.3",
|
|
45
45
|
"globby": "^11.1.0",
|
|
@@ -78,12 +78,11 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@o3r/schematics": "^12.5.0-prerelease.
|
|
81
|
+
"@o3r/schematics": "^12.5.0-prerelease.20",
|
|
82
82
|
"tslib": "^2.6.2",
|
|
83
83
|
"uuid": "^11.0.5"
|
|
84
84
|
},
|
|
85
85
|
"generatorDependencies": {
|
|
86
|
-
"@angular/material": "~19.2.0",
|
|
87
86
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
88
87
|
"@ngrx/effects": "~19.2.0",
|
|
89
88
|
"@ngrx/entity": "~19.2.0",
|
|
@@ -91,19 +90,19 @@
|
|
|
91
90
|
"@ngrx/store": "~19.2.0",
|
|
92
91
|
"@ngrx/store-devtools": "~19.2.0",
|
|
93
92
|
"@nx/eslint-plugin": "~20.8.0",
|
|
94
|
-
"@o3r/store-sync": "^12.5.0-prerelease.
|
|
93
|
+
"@o3r/store-sync": "^12.5.0-prerelease.20",
|
|
95
94
|
"@stylistic/eslint-plugin": "~3.1.0",
|
|
96
95
|
"@types/jest": "~29.5.2",
|
|
97
|
-
"@typescript-eslint/eslint-plugin": "~8.
|
|
98
|
-
"@typescript-eslint/parser": "~8.
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "~8.35.0",
|
|
97
|
+
"@typescript-eslint/parser": "~8.35.0",
|
|
99
98
|
"angular-eslint": "~19.4.0",
|
|
100
99
|
"cpy-cli": "^5.0.0",
|
|
101
|
-
"eslint": "~9.
|
|
100
|
+
"eslint": "~9.29.0",
|
|
102
101
|
"eslint-import-resolver-node": "~0.3.9",
|
|
103
102
|
"eslint-import-resolver-typescript": "~3.10.0",
|
|
104
|
-
"eslint-plugin-import": "~2.
|
|
103
|
+
"eslint-plugin-import": "~2.32.0",
|
|
105
104
|
"eslint-plugin-import-newlines": "~1.4.0",
|
|
106
|
-
"eslint-plugin-jest": "~28.
|
|
105
|
+
"eslint-plugin-jest": "~28.14.0",
|
|
107
106
|
"eslint-plugin-jsdoc": "~50.8.0",
|
|
108
107
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
109
108
|
"eslint-plugin-unicorn": "~56.0.0",
|
|
@@ -114,7 +113,7 @@
|
|
|
114
113
|
"jest-preset-angular": "~14.5.0",
|
|
115
114
|
"jsonc-eslint-parser": "~2.4.0",
|
|
116
115
|
"nx": "~20.8.0",
|
|
117
|
-
"typescript-eslint": "~8.
|
|
116
|
+
"typescript-eslint": "~8.35.0",
|
|
118
117
|
"zone.js": "~0.15.0"
|
|
119
118
|
},
|
|
120
119
|
"engines": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAwGpC;;;GAGG;AACH,eAAO,MAAM,KAAK,wBAAgC,CAAC"}
|
|
@@ -52,8 +52,10 @@ function ngAddFn(options) {
|
|
|
52
52
|
return (0, schematics_1.chain)([
|
|
53
53
|
(0, schematics_2.setupSchematicsParamsForProject)({ '*:ng-add': { registerDevtool: options.withDevtool } }, options.projectName),
|
|
54
54
|
options.exactO3rVersion ? (0, schematics_2.setupSchematicsParamsForProject)({ '*:*': { exactO3rVersion: true } }, options.projectName) : (0, schematics_1.noop)(),
|
|
55
|
+
// Warning: this should always be executed before the setup dependencies as it modifies the options.dependencies
|
|
55
56
|
options.projectName ? (0, index_1.prepareProject)(options, dependenciesSetupConfig) : (0, schematics_1.noop)(),
|
|
56
57
|
(0, schematics_2.registerPackageCollectionSchematics)(corePackageJsonContent),
|
|
58
|
+
(0, schematics_3.setupDependencies)(dependenciesSetupConfig),
|
|
57
59
|
async (t, c) => {
|
|
58
60
|
const { preset, externalPresets, ...forwardOptions } = options;
|
|
59
61
|
const presetOptions = { projectName: forwardOptions.projectName, exactO3rVersion: forwardOptions.exactO3rVersion, forwardOptions, isUsingEslintLegacy: (0, utils_1.isUsingLegacyConfig)(t) };
|
|
@@ -71,8 +73,7 @@ function ngAddFn(options) {
|
|
|
71
73
|
externalPresetRunner?.rule || (0, schematics_1.noop)()
|
|
72
74
|
])(t, c);
|
|
73
75
|
},
|
|
74
|
-
options.projectName ? (0, schematics_2.displayModuleListRule)({ packageName: options.projectName }) : (0, schematics_1.noop)()
|
|
75
|
-
(0, schematics_3.setupDependencies)(dependenciesSetupConfig)
|
|
76
|
+
options.projectName ? (0, schematics_2.displayModuleListRule)({ packageName: options.projectName }) : (0, schematics_1.noop)()
|
|
76
77
|
]);
|
|
77
78
|
};
|
|
78
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/additional-modules/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/additional-modules/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AAmBzB;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAAE,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CA6MrL"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateAdditionalModules = updateAdditionalModules;
|
|
4
|
-
const fs = require("node:fs");
|
|
5
4
|
const path = require("node:path");
|
|
6
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
7
6
|
const schematics_2 = require("@o3r/schematics");
|
|
8
7
|
const utility_1 = require("@schematics/angular/utility");
|
|
9
8
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
10
9
|
const change_1 = require("@schematics/angular/utility/change");
|
|
11
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
12
10
|
const ts = require("typescript");
|
|
13
|
-
const
|
|
14
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
|
|
11
|
+
const o3rPackageJsonPath = path.resolve(__dirname, '..', '..', '..', 'package.json');
|
|
15
12
|
const ngrxStoreDevtoolsDep = '@ngrx/store-devtools';
|
|
16
13
|
/**
|
|
17
14
|
* Add additional modules for dev only
|
|
@@ -24,21 +21,22 @@ function updateAdditionalModules(options, dependenciesSetupConfig) {
|
|
|
24
21
|
/**
|
|
25
22
|
* Update package.json to add additional modules dependencies
|
|
26
23
|
* @param tree
|
|
24
|
+
* @param context
|
|
27
25
|
*/
|
|
28
|
-
const updatePackageJson = (tree) => {
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
const updatePackageJson = (tree, context) => {
|
|
27
|
+
const workspaceConfig = (0, schematics_2.getWorkspaceConfig)(tree);
|
|
28
|
+
const workspaceProject = (options.projectName && workspaceConfig?.projects?.[options.projectName]) || undefined;
|
|
29
|
+
const projectDirectory = workspaceProject?.root || '.';
|
|
30
|
+
const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
|
|
31
|
+
dependenciesSetupConfig.dependencies = {
|
|
32
|
+
...dependenciesSetupConfig.dependencies,
|
|
33
|
+
...(0, schematics_2.getExternalDependenciesInfo)({
|
|
34
|
+
dependenciesToInstall: [ngrxStoreDevtoolsDep],
|
|
35
|
+
devDependenciesToInstall: ['chokidar'],
|
|
36
|
+
o3rPackageJsonPath,
|
|
37
|
+
projectType: workspaceProject?.projectType,
|
|
38
|
+
projectPackageJson
|
|
39
|
+
}, context.logger)
|
|
42
40
|
};
|
|
43
41
|
return tree;
|
|
44
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/store/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AACpC,OAAO,EASL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/store/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AACpC,OAAO,EASL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAuBzB;;;;;;;;GAQG;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,CAuIrD"}
|
|
@@ -48,17 +48,21 @@ function updateStore(options, projectType) {
|
|
|
48
48
|
const updatePackageJson = (tree, context) => {
|
|
49
49
|
const workspaceConfig = (0, schematics_2.getWorkspaceConfig)(tree);
|
|
50
50
|
const workspaceProject = (options.projectName && workspaceConfig?.projects?.[options.projectName]) || undefined;
|
|
51
|
+
const projectDirectory = workspaceProject?.root || '.';
|
|
52
|
+
const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
|
|
51
53
|
const appDeps = [ngrxEffectsDep, ngrxRouterStore, ngrxRouterStoreDevToolDep];
|
|
52
54
|
const corePeerDeps = [ngrxEntityDep, ngrxStoreDep];
|
|
53
55
|
const dependenciesList = projectType === 'application' ? [...corePeerDeps, ...appDeps] : [...corePeerDeps];
|
|
54
|
-
|
|
55
|
-
options.dependenciesSetupConfig.dependencies
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
options.dependenciesSetupConfig.dependencies = {
|
|
57
|
+
...options.dependenciesSetupConfig.dependencies,
|
|
58
|
+
...(0, schematics_2.getExternalDependenciesInfo)({
|
|
59
|
+
dependenciesToInstall: dependenciesList,
|
|
60
|
+
devDependenciesToInstall: [],
|
|
61
|
+
o3rPackageJsonPath: corePackageJsonPath,
|
|
62
|
+
projectType,
|
|
63
|
+
projectPackageJson
|
|
64
|
+
}, context.logger)
|
|
65
|
+
};
|
|
62
66
|
};
|
|
63
67
|
/**
|
|
64
68
|
* Edit main module with the translation required configuration
|