@o3r/dynamic-content 12.2.5 → 12.2.8
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/dynamic-content",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,14 +42,15 @@
|
|
|
42
42
|
"@angular/core": "^19.0.0",
|
|
43
43
|
"@angular/platform-browser-dynamic": "^19.0.0",
|
|
44
44
|
"@ngrx/store": "^19.0.0",
|
|
45
|
-
"@o3r/core": "^12.2.
|
|
46
|
-
"@o3r/schematics": "^12.2.
|
|
45
|
+
"@o3r/core": "^12.2.8",
|
|
46
|
+
"@o3r/schematics": "^12.2.8",
|
|
47
47
|
"@schematics/angular": "^19.0.0",
|
|
48
48
|
"cheerio": "^1.0.0-rc.10",
|
|
49
49
|
"express-interceptor": "^1.2.0",
|
|
50
50
|
"jasmine": "^5.0.0",
|
|
51
51
|
"rxjs": "^7.8.1",
|
|
52
|
-
"ts-node": "~10.9.2"
|
|
52
|
+
"ts-node": "~10.9.2",
|
|
53
|
+
"type-fest": "^4.30.1"
|
|
53
54
|
},
|
|
54
55
|
"peerDependenciesMeta": {
|
|
55
56
|
"@angular-devkit/schematics": {
|
|
@@ -69,6 +70,9 @@
|
|
|
69
70
|
},
|
|
70
71
|
"jasmine": {
|
|
71
72
|
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"type-fest": {
|
|
75
|
+
"optional": true
|
|
72
76
|
}
|
|
73
77
|
},
|
|
74
78
|
"dependencies": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AA4DlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,KAAG,IAKtD,CAAC"}
|
|
@@ -8,17 +8,46 @@ const reportMissingSchematicsDep = (logger) => (reason) => {
|
|
|
8
8
|
You need to install '@o3r/schematics' to be able to use the o3r apis-manager package. Please run 'ng add @o3r/schematics' .`);
|
|
9
9
|
throw reason;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* List of external dependencies to be added to the project as peer dependencies
|
|
13
|
+
*/
|
|
14
|
+
const dependenciesToInstall = [
|
|
15
|
+
'@angular/core',
|
|
16
|
+
'@angular/platform-browser-dynamic',
|
|
17
|
+
'@ngrx/store',
|
|
18
|
+
'rxjs'
|
|
19
|
+
];
|
|
20
|
+
/**
|
|
21
|
+
* List of external dependencies to be added to the project as dev dependencies
|
|
22
|
+
*/
|
|
23
|
+
const devDependenciesToInstall = [
|
|
24
|
+
'@angular/compiler-cli',
|
|
25
|
+
'rxjs'
|
|
26
|
+
];
|
|
11
27
|
/**
|
|
12
28
|
* Add Otter dynamic-content to an Angular Project
|
|
13
29
|
* @param options
|
|
14
30
|
*/
|
|
15
31
|
function ngAddFn(options) {
|
|
16
32
|
/* ng add rules */
|
|
17
|
-
return async (tree) => {
|
|
18
|
-
const { getPackageInstallConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
33
|
+
return async (tree, context) => {
|
|
34
|
+
const { getExternalDependenciesInfo, getPackageInstallConfig, getWorkspaceConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
35
|
+
const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
|
|
36
|
+
const projectDirectory = workspaceProject?.root || '.';
|
|
37
|
+
const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
|
|
38
|
+
const externalDependenciesInfo = getExternalDependenciesInfo({
|
|
39
|
+
devDependenciesToInstall,
|
|
40
|
+
dependenciesToInstall,
|
|
41
|
+
projectType: workspaceProject?.projectType,
|
|
42
|
+
o3rPackageJsonPath: packageJsonPath,
|
|
43
|
+
projectPackageJson
|
|
44
|
+
}, context.logger);
|
|
19
45
|
return setupDependencies({
|
|
20
46
|
projectName: options.projectName,
|
|
21
|
-
dependencies:
|
|
47
|
+
dependencies: {
|
|
48
|
+
...getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion),
|
|
49
|
+
...externalDependenciesInfo
|
|
50
|
+
}
|
|
22
51
|
});
|
|
23
52
|
};
|
|
24
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAWlC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E,MAAM,0BAA0B,GAAG,CAAC,MAA2C,EAAE,EAAE,CAAC,CAAC,MAAW,EAAE,EAAE;IAClG,MAAM,CAAC,KAAK,CAAC;4HAC6G,CAAC,CAAC;IAC5H,MAAM,MAAM,CAAC;AACf,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,eAAe;IACf,mCAAmC;IACnC,aAAa;IACb,MAAM;CACP,CAAC;AAEF;;GAEG;AACH,MAAM,wBAAwB,GAAG;IAC/B,uBAAuB;IACvB,MAAM;CACP,CAAC;AAEF;;;GAGG;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