@o3r/dynamic-content 10.2.0-prerelease.14 → 10.2.0-prerelease.15
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": "10.2.0-prerelease.
|
|
3
|
+
"version": "10.2.0-prerelease.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@angular/core": "~17.2.0",
|
|
50
50
|
"@angular/platform-browser-dynamic": "~17.2.0",
|
|
51
51
|
"@ngrx/store": "~17.1.0",
|
|
52
|
-
"@o3r/core": "^10.2.0-prerelease.
|
|
53
|
-
"@o3r/schematics": "^10.2.0-prerelease.
|
|
52
|
+
"@o3r/core": "^10.2.0-prerelease.15",
|
|
53
|
+
"@o3r/schematics": "^10.2.0-prerelease.15",
|
|
54
54
|
"cheerio": "^1.0.0-rc.10",
|
|
55
55
|
"express-interceptor": "^1.2.0",
|
|
56
56
|
"jasmine": "^5.0.0",
|
|
@@ -2,6 +2,7 @@ import type { Rule } from '@angular-devkit/schematics';
|
|
|
2
2
|
import type { NgAddSchematicsSchema } from './schema';
|
|
3
3
|
/**
|
|
4
4
|
* Add Otter dynamic-content to an Angular Project
|
|
5
|
+
* @param options
|
|
5
6
|
*/
|
|
6
7
|
export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAyBtD;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAGtD,CAAC"}
|
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngAdd = void 0;
|
|
4
|
-
const schematics_1 = require("@o3r/schematics");
|
|
5
4
|
const path = require("node:path");
|
|
6
5
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
6
|
+
const reportMissingSchematicsDep = (logger) => (reason) => {
|
|
7
|
+
logger.error(`[ERROR]: Adding @o3r/apis-manager has failed.
|
|
8
|
+
You need to install '@o3r/schematics' to be able to use the o3r apis-manager package. Please run 'ng add @o3r/schematics' .`);
|
|
9
|
+
throw reason;
|
|
10
|
+
};
|
|
7
11
|
/**
|
|
8
12
|
* Add Otter dynamic-content to an Angular Project
|
|
9
13
|
* @param options
|
|
10
14
|
*/
|
|
11
15
|
function ngAddFn(options) {
|
|
12
16
|
/* ng add rules */
|
|
13
|
-
return (tree) => {
|
|
14
|
-
|
|
17
|
+
return async (tree) => {
|
|
18
|
+
const { getPackageInstallConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
19
|
+
return setupDependencies({
|
|
15
20
|
projectName: options.projectName,
|
|
16
|
-
dependencies:
|
|
21
|
+
dependencies: getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
|
|
17
22
|
});
|
|
18
23
|
};
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* Add Otter dynamic-content to an Angular Project
|
|
27
|
+
* @param options
|
|
22
28
|
*/
|
|
23
|
-
|
|
29
|
+
const ngAdd = (options) => async (_, { logger }) => {
|
|
30
|
+
const { createSchematicWithMetricsIfInstalled } = await Promise.resolve().then(() => require('@o3r/schematics')).catch(reportMissingSchematicsDep(logger));
|
|
31
|
+
return createSchematicWithMetricsIfInstalled(ngAddFn)(options);
|
|
32
|
+
};
|
|
33
|
+
exports.ngAdd = ngAdd;
|
|
24
34
|
//# sourceMappingURL=index.js.map
|