@ama-mfe/ng-utils 13.0.0-prerelease.3 → 13.0.0-prerelease.4
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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-mfe/ng-utils",
|
|
3
|
-
"version": "13.0.0-prerelease.
|
|
3
|
+
"version": "13.0.0-prerelease.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@ama-mfe/messages": "^13.0.0-prerelease.
|
|
8
|
+
"@ama-mfe/messages": "^13.0.0-prerelease.4",
|
|
9
9
|
"@amadeus-it-group/microfrontends": "0.0.7",
|
|
10
10
|
"@amadeus-it-group/microfrontends-angular": "0.0.7",
|
|
11
11
|
"@angular-devkit/core": "^20.0.0",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"@angular/core": "^20.0.0",
|
|
15
15
|
"@angular/platform-browser": "^20.0.0",
|
|
16
16
|
"@angular/router": "^20.0.0",
|
|
17
|
-
"@o3r/logger": "^13.0.0-prerelease.
|
|
18
|
-
"@o3r/schematics": "^13.0.0-prerelease.
|
|
17
|
+
"@o3r/logger": "^13.0.0-prerelease.4",
|
|
18
|
+
"@o3r/schematics": "^13.0.0-prerelease.4",
|
|
19
19
|
"rxjs": "^7.8.1",
|
|
20
20
|
"type-fest": "^4.30.1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@amadeus-it-group/microfrontends": "0.0.7",
|
|
24
24
|
"@amadeus-it-group/microfrontends-angular": "0.0.7",
|
|
25
|
-
"@o3r/logger": "^13.0.0-prerelease.
|
|
26
|
-
"@o3r/schematics": "^13.0.0-prerelease.
|
|
25
|
+
"@o3r/logger": "^13.0.0-prerelease.4",
|
|
26
|
+
"@o3r/schematics": "^13.0.0-prerelease.4",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAMpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAmClB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
|
|
@@ -5,7 +5,7 @@ const path = require("node:path");
|
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const schematics_2 = require("@o3r/schematics");
|
|
7
7
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
8
|
-
const doCustomAction = (tree) => {
|
|
8
|
+
const doCustomAction = (_options) => (tree) => {
|
|
9
9
|
// your custom code here
|
|
10
10
|
return tree;
|
|
11
11
|
};
|
|
@@ -21,42 +21,16 @@ const dependenciesToInstall = [
|
|
|
21
21
|
'@angular/core',
|
|
22
22
|
'@angular/router'
|
|
23
23
|
];
|
|
24
|
-
const dependenciesToNgAdd = [
|
|
25
|
-
// Add the dependencies to install with NgAdd here
|
|
26
|
-
];
|
|
27
24
|
/**
|
|
28
25
|
* Add ama mfe angular utils library
|
|
29
26
|
* @param options
|
|
30
27
|
*/
|
|
31
28
|
function ngAddFn(options) {
|
|
32
|
-
return (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const externalDependenciesInfo = (0, schematics_2.getExternalDependenciesInfo)({
|
|
38
|
-
devDependenciesToInstall: devDependenciesToInstall,
|
|
39
|
-
dependenciesToInstall: dependenciesToInstall,
|
|
40
|
-
o3rPackageJsonPath: packageJsonPath,
|
|
41
|
-
projectPackageJson,
|
|
42
|
-
projectType: workspaceProject?.projectType
|
|
43
|
-
}, context.logger);
|
|
44
|
-
const dependencies = (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName);
|
|
45
|
-
return (0, schematics_1.chain)([
|
|
46
|
-
// optional custom action dedicated to this module
|
|
47
|
-
doCustomAction,
|
|
48
|
-
options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEsLintFix)(),
|
|
49
|
-
(0, schematics_2.setupDependencies)({
|
|
50
|
-
projectName: options.projectName,
|
|
51
|
-
dependencies: {
|
|
52
|
-
...dependencies,
|
|
53
|
-
...externalDependenciesInfo
|
|
54
|
-
},
|
|
55
|
-
ngAddToRun: dependenciesToNgAdd,
|
|
56
|
-
skipInstall: options.skipInstall
|
|
57
|
-
})
|
|
58
|
-
]);
|
|
59
|
-
};
|
|
29
|
+
return (0, schematics_1.chain)([
|
|
30
|
+
doCustomAction(options),
|
|
31
|
+
options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEsLintFix)(),
|
|
32
|
+
(0, schematics_2.ngAddDependenciesRule)(options, packageJsonPath, { dependenciesToInstall, devDependenciesToInstall })
|
|
33
|
+
]);
|
|
60
34
|
}
|
|
61
35
|
/**
|
|
62
36
|
* Add module to an Angular Project
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { SchematicOptionObject } from '@o3r/schematics';
|
|
2
|
-
export interface NgAddSchematicsSchema extends SchematicOptionObject {
|
|
3
|
-
/** Project name */
|
|
4
|
-
projectName: string | undefined;
|
|
1
|
+
import type { NgAddOptions, SchematicOptionObject } from '@o3r/schematics';
|
|
2
|
+
export interface NgAddSchematicsSchema extends NgAddOptions, SchematicOptionObject {
|
|
5
3
|
/** Skip the linter process which includes the run of EsLint and EditorConfig rules */
|
|
6
4
|
skipLinter: boolean;
|
|
7
|
-
/** Skip the install process */
|
|
8
|
-
skipInstall: boolean | undefined;
|
|
9
5
|
}
|
|
10
6
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,YAAY,EAAE,qBAAqB;IAChF,sFAAsF;IACtF,UAAU,EAAE,OAAO,CAAC;CACrB"}
|