@o3r/application 9.2.0-alpha.9 → 9.3.0-alpha.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/application",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0-alpha.0",
|
|
4
4
|
"description": "This module provides development help to monitor your Otter Application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"application",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"@angular-devkit/schematics": "~16.2.0",
|
|
26
26
|
"@angular/common": "~16.2.0",
|
|
27
27
|
"@angular/core": "~16.2.0",
|
|
28
|
-
"@o3r/core": "^9.
|
|
29
|
-
"@o3r/dev-tools": "^9.
|
|
30
|
-
"@o3r/logger": "^9.
|
|
31
|
-
"@o3r/routing": "^9.
|
|
32
|
-
"@o3r/schematics": "^9.
|
|
33
|
-
"@o3r/testing": "^9.
|
|
28
|
+
"@o3r/core": "^9.3.0-alpha.0",
|
|
29
|
+
"@o3r/dev-tools": "^9.3.0-alpha.0",
|
|
30
|
+
"@o3r/logger": "^9.3.0-alpha.0",
|
|
31
|
+
"@o3r/routing": "^9.3.0-alpha.0",
|
|
32
|
+
"@o3r/schematics": "^9.3.0-alpha.0",
|
|
33
|
+
"@o3r/testing": "^9.3.0-alpha.0",
|
|
34
34
|
"@schematics/angular": "~16.2.0",
|
|
35
35
|
"rxjs": "^7.8.1",
|
|
36
36
|
"typescript": "~5.1.6"
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import type { NgAddSchematicsSchema } from './schema';
|
|
2
3
|
/**
|
|
3
4
|
* Add Otter application to an Angular Project
|
|
5
|
+
* @param options The options to pass to ng-add execution
|
|
4
6
|
*/
|
|
5
|
-
export declare function ngAdd(): Rule;
|
|
7
|
+
export declare function ngAdd(options: NgAddSchematicsSchema): Rule;
|
|
6
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,EAA0B,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGtD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CA6E1D"}
|
|
@@ -5,15 +5,17 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
5
5
|
const path = require("node:path");
|
|
6
6
|
/**
|
|
7
7
|
* Add Otter application to an Angular Project
|
|
8
|
+
* @param options The options to pass to ng-add execution
|
|
8
9
|
*/
|
|
9
|
-
function ngAdd() {
|
|
10
|
+
function ngAdd(options) {
|
|
10
11
|
/* ng add rules */
|
|
11
12
|
return async (tree, context) => {
|
|
12
13
|
try {
|
|
13
|
-
const { addImportToModuleFile, getAppModuleFilePath, getProjectDepType, insertImportToModuleFile, ngAddPackages, getO3rPeerDeps } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
14
|
+
const { addImportToModuleFile, getAppModuleFilePath, getProjectDepType, getProjectRootDir, insertImportToModuleFile, ngAddPackages, getO3rPeerDeps } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
14
15
|
const { getDecoratorMetadata, isImported } = await Promise.resolve().then(() => require('@schematics/angular/utility/ast-utils'));
|
|
15
16
|
const ts = await Promise.resolve().then(() => require('typescript'));
|
|
16
17
|
const depsInfo = getO3rPeerDeps(path.resolve(__dirname, '..', '..', 'package.json'));
|
|
18
|
+
const workingDirectory = getProjectRootDir(tree, options.projectName);
|
|
17
19
|
const addAngularAnimationPreferences = () => {
|
|
18
20
|
const moduleFilePath = getAppModuleFilePath(tree, context);
|
|
19
21
|
if (!moduleFilePath) {
|
|
@@ -39,7 +41,8 @@ function ngAdd() {
|
|
|
39
41
|
skipConfirmation: true,
|
|
40
42
|
version: depsInfo.packageVersion,
|
|
41
43
|
parentPackageInfo: depsInfo.packageName,
|
|
42
|
-
dependencyType
|
|
44
|
+
dependencyType,
|
|
45
|
+
workingDirectory
|
|
43
46
|
}),
|
|
44
47
|
addAngularAnimationPreferences
|
|
45
48
|
])(tree, context);
|