@eui/tools 5.3.42 → 5.3.43
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/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/scripts/csdr/config/angular.js +53 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.43
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 5.3.43 (2022-09-07)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted CSDR file replacement for config files for v14 replacement feature of CSDR apps - EUI-6398 [EUI-6398](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6398) ([5a11343b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5a11343b53dd6ff2e6c25e8bea173e0983a0a6ce))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 5.3.42 (2022-09-06)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1040,6 +1040,23 @@ const angularProjectDefConfiguration = {
|
|
|
1040
1040
|
]
|
|
1041
1041
|
};
|
|
1042
1042
|
|
|
1043
|
+
|
|
1044
|
+
const angularProjectDefConfigurationLight = {
|
|
1045
|
+
"buildOptimizer": false,
|
|
1046
|
+
"optimization": false,
|
|
1047
|
+
"vendorChunk": true,
|
|
1048
|
+
"extractLicenses": false,
|
|
1049
|
+
"sourceMap": true,
|
|
1050
|
+
"namedChunks": true,
|
|
1051
|
+
"fileReplacements": [
|
|
1052
|
+
{
|
|
1053
|
+
"replace": "apps/@project.name@/src/environments/environment.ts",
|
|
1054
|
+
"with": "apps/@project.name@/src/environments/environment.@config.key@.ts"
|
|
1055
|
+
}
|
|
1056
|
+
]
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
|
|
1043
1060
|
const angularProjectDefConfigurationOptimized = {
|
|
1044
1061
|
"fileReplacements": [
|
|
1045
1062
|
{
|
|
@@ -1082,6 +1099,31 @@ const angularProjectDefConfigurationOptimized = {
|
|
|
1082
1099
|
}
|
|
1083
1100
|
|
|
1084
1101
|
|
|
1102
|
+
const angularProjectDefConfigurationOptimizedLight = {
|
|
1103
|
+
"fileReplacements": [
|
|
1104
|
+
{
|
|
1105
|
+
"replace": "apps/@project.name@/src/environments/environment.ts",
|
|
1106
|
+
"with": "apps/@project.name@/src/environments/environment.@config.key@.ts"
|
|
1107
|
+
}
|
|
1108
|
+
],
|
|
1109
|
+
"optimization": true,
|
|
1110
|
+
"outputHashing": "all",
|
|
1111
|
+
"sourceMap": false,
|
|
1112
|
+
"extractCss": true,
|
|
1113
|
+
"namedChunks": true,
|
|
1114
|
+
"aot": true,
|
|
1115
|
+
"extractLicenses": true,
|
|
1116
|
+
"vendorChunk": false,
|
|
1117
|
+
"buildOptimizer": true,
|
|
1118
|
+
"budgets": [
|
|
1119
|
+
{
|
|
1120
|
+
"type": "initial",
|
|
1121
|
+
"maximumWarning": "2mb",
|
|
1122
|
+
"maximumError": "7mb"
|
|
1123
|
+
}
|
|
1124
|
+
]
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1085
1127
|
const angularPackageDef = {
|
|
1086
1128
|
"root": "@path@/@module.name@",
|
|
1087
1129
|
"sourceRoot": "@path@/@module.name@/src",
|
|
@@ -1503,8 +1545,17 @@ module.exports.registerAngularProjectDef = (project, build = false) => {
|
|
|
1503
1545
|
// replacing custom configurations if provided
|
|
1504
1546
|
if (angularConfigFile.configurations && angularConfigFile.configurations.length > 0) {
|
|
1505
1547
|
tools.logInfo('Processing configurations injection');
|
|
1506
|
-
|
|
1507
|
-
|
|
1548
|
+
|
|
1549
|
+
let configurationDef, configurationDefOptimized;
|
|
1550
|
+
if (project.build && project.build.csdrFileReplacement) {
|
|
1551
|
+
tools.logInfo('Injecting light angular configuration - file replacement is handled by CSDR');
|
|
1552
|
+
configurationDef = JSON.stringify(angularProjectDefConfigurationLight);
|
|
1553
|
+
configurationDefOptimized = JSON.stringify(angularProjectDefConfigurationOptimizedLight);
|
|
1554
|
+
} else {
|
|
1555
|
+
tools.logInfo('Injecting angular configuration file replacement');
|
|
1556
|
+
configurationDef = JSON.stringify(angularProjectDefConfiguration);
|
|
1557
|
+
configurationDefOptimized = JSON.stringify(angularProjectDefConfigurationOptimized);
|
|
1558
|
+
}
|
|
1508
1559
|
|
|
1509
1560
|
angularConfigFile.configurations.forEach((conf) => {
|
|
1510
1561
|
const confKey = Object.keys(conf)[0];
|