@eui/tools 6.21.46 → 6.21.48
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.48
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.21.48 (2025-03-07)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted workspaces config for routes creation to multi-env config - MWP-11274 [MWP-11274](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11274) ([c0fba734](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c0fba734c2624cd501dc284fbf61525e56526045))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.21.47 (2025-03-05)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* Enable BFF for localhost development [CCARCHITEC-1641](https://webgate.ec.europa.eu/CITnet/jira/browse/CCARCHITEC-1641) ([8e26c76e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8e26c76e19aada261a5b74d37ce8f1e64b6ad539))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.21.46 (2025-03-05)
|
|
2
20
|
|
|
3
21
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -410,7 +410,23 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
|
|
|
410
410
|
|
|
411
411
|
let replaceConfiguration = '';
|
|
412
412
|
if (confKey.indexOf('local') > -1) {
|
|
413
|
-
tools.logInfo('Local injection (non-optimized)')
|
|
413
|
+
tools.logInfo('Local injection (non-optimized)');
|
|
414
|
+
try {
|
|
415
|
+
if (confKey.indexOf('cdn') > -1) {
|
|
416
|
+
let localIndexFilePath = 'hosts/' + project.name + '/src/index-local';
|
|
417
|
+
if (confKey.indexOf('dev') > -1) {
|
|
418
|
+
localIndexFilePath += '-dev';
|
|
419
|
+
} else if (confKey.indexOf('tst') > -1) {
|
|
420
|
+
localIndexFilePath += '-tst';
|
|
421
|
+
}
|
|
422
|
+
localIndexFilePath += '.html';
|
|
423
|
+
const configurationDefObject = JSON.parse(configurationDef);
|
|
424
|
+
configurationDefObject.index = localIndexFilePath;
|
|
425
|
+
configurationDef = JSON.stringify(configurationDefObject);
|
|
426
|
+
}
|
|
427
|
+
} catch (error) {
|
|
428
|
+
tools.logError('Failed to replace local index.html file.');
|
|
429
|
+
}
|
|
414
430
|
replaceConfiguration = tools.replaceAll(configurationDef, '@config.filename@', confValue);
|
|
415
431
|
} else {
|
|
416
432
|
tools.logInfo('Env injection - optimized');
|
|
@@ -522,7 +522,7 @@ const generateLinks = (project, routes, envTargetFinal) => {
|
|
|
522
522
|
|
|
523
523
|
const euiVersion = configUtils.projects.getProjectEuiVersion(project);
|
|
524
524
|
|
|
525
|
-
let routeDefsBaseLinksFileName;
|
|
525
|
+
let routeDefsBaseLinksFileName, workspaceDefsBaseFilename;
|
|
526
526
|
|
|
527
527
|
if (
|
|
528
528
|
envTargetFinal === 'dev' ||
|
|
@@ -536,26 +536,34 @@ const generateLinks = (project, routes, envTargetFinal) => {
|
|
|
536
536
|
envTargetFinal.indexOf('local') > -1
|
|
537
537
|
) {
|
|
538
538
|
if (envTargetFinal.indexOf('dev-local') > -1) {
|
|
539
|
-
routeDefsBaseLinksFileName = `route-defs-base-links-dev.json
|
|
539
|
+
routeDefsBaseLinksFileName = `route-defs-base-links-dev.json`;
|
|
540
|
+
workspaceDefsBaseFilename = 'workspace-defs-base-dev.json';
|
|
540
541
|
} else if (envTargetFinal.indexOf('tst-local') > -1) {
|
|
541
|
-
routeDefsBaseLinksFileName = `route-defs-base-links-test.json
|
|
542
|
+
routeDefsBaseLinksFileName = `route-defs-base-links-test.json`;
|
|
543
|
+
workspaceDefsBaseFilename = 'workspace-defs-base-test.json';
|
|
542
544
|
} else if (envTargetFinal.indexOf('local-proxy') > -1) {
|
|
543
|
-
routeDefsBaseLinksFileName = `route-defs-base-links-dev.json
|
|
545
|
+
routeDefsBaseLinksFileName = `route-defs-base-links-dev.json`;
|
|
546
|
+
workspaceDefsBaseFilename = 'workspace-defs-base-dev.json';
|
|
544
547
|
} else {
|
|
545
|
-
routeDefsBaseLinksFileName = `route-defs-base-links-${envTargetFinal}.json
|
|
548
|
+
routeDefsBaseLinksFileName = `route-defs-base-links-${envTargetFinal}.json`;
|
|
549
|
+
workspaceDefsBaseFilename = `workspace-defs-base-${envTargetFinal}.json`;
|
|
546
550
|
}
|
|
547
551
|
} else {
|
|
548
552
|
routeDefsBaseLinksFileName = 'route-defs-base-links.json';
|
|
553
|
+
workspaceDefsBaseFilename = 'workspace-defs-base.json';
|
|
549
554
|
}
|
|
550
555
|
|
|
551
556
|
const routeDefsBaseLinksJSON = require(path.join(project.paths.assetsPath, routeDefsBaseLinksFileName));
|
|
552
557
|
const routeDefsBaseFilename = 'route-defs-base.json';
|
|
553
558
|
const routeDefsBaseJSON = require(path.join(project.paths.assetsPath, routeDefsBaseFilename));
|
|
554
|
-
const workspaceDefsBaseFilename = 'workspace-defs-base.json';
|
|
555
559
|
|
|
556
560
|
let workspaceDefsBaseJSON;
|
|
561
|
+
tools.logInfo(`checking workspace config file : ${workspaceDefsBaseFilename}`);
|
|
557
562
|
if (tools.isFileExists(path.join(project.paths.assetsPath, workspaceDefsBaseFilename))) {
|
|
563
|
+
tools.logInfo('==> existing...processing');
|
|
558
564
|
workspaceDefsBaseJSON = require(path.join(project.paths.assetsPath, workspaceDefsBaseFilename));
|
|
565
|
+
} else {
|
|
566
|
+
tools.logWarning('==> not existing...skipping');
|
|
559
567
|
}
|
|
560
568
|
|
|
561
569
|
const getRouteMenuDef = (link, euiVersion) => {
|