@eui/tools 6.13.6 → 6.13.8
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.13.
|
|
1
|
+
6.13.8
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.13.8 (2023-11-13)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted for non-esbuild MWP v17 angular injected config - EUI-7843 [EUI-7843](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7843) ([cb64af60](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/cb64af609496abad3e1459bd46c0b72316183b97))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.13.7 (2023-11-06)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* updated to forced deps for MWP releases v16 and v10 on multi-environments - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([04de9b3e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/04de9b3eadaaf712368cb15459e3d34337d23034))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.13.6 (2023-10-26)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -1344,12 +1344,23 @@ const publishUtils = require('./scripts/utils/publish/publish-utils');
|
|
|
1344
1344
|
// console.log(e);
|
|
1345
1345
|
// })
|
|
1346
1346
|
|
|
1347
|
+
// Promise.resolve()
|
|
1348
|
+
// .then(() => {
|
|
1349
|
+
// const util = require('./scripts/csdr/release/package/common');
|
|
1350
|
+
// const branches = util.getBranches();
|
|
1351
|
+
// console.log(branches);
|
|
1352
|
+
// })
|
|
1353
|
+
// .catch((e) => {
|
|
1354
|
+
// console.log(e);
|
|
1355
|
+
// })
|
|
1356
|
+
|
|
1347
1357
|
Promise.resolve()
|
|
1348
1358
|
.then(() => {
|
|
1349
|
-
const
|
|
1350
|
-
const
|
|
1351
|
-
|
|
1359
|
+
const prj = configUtils.projects.getCsdrProject('my-workplace-host');
|
|
1360
|
+
const envTarget = 'INT';
|
|
1361
|
+
return installUtils.projects.getDeps(prj, envTarget);
|
|
1352
1362
|
})
|
|
1353
|
-
|
|
1354
|
-
|
|
1363
|
+
|
|
1364
|
+
.then((compositeDeps) => {
|
|
1365
|
+
console.log(compositeDeps);
|
|
1355
1366
|
})
|
|
@@ -17,6 +17,7 @@ const {
|
|
|
17
17
|
angularProjectDefV13,
|
|
18
18
|
angularProjectDefV14,
|
|
19
19
|
angularProjectDefV17,
|
|
20
|
+
angularProjectDefV17esbuild,
|
|
20
21
|
angularProjectLightDef,
|
|
21
22
|
angularProjectDefFullSkeleton,
|
|
22
23
|
angularProjectDefFullSkeletonV13,
|
|
@@ -252,8 +253,13 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
|
|
|
252
253
|
projectDef = JSON.stringify(angularProjectDefV14);
|
|
253
254
|
tools.logInfo(`----using angularProjectDefV14`);
|
|
254
255
|
} else if (euiVersion === '17.x') {
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
if (project.build.esbuild) {
|
|
257
|
+
projectDef = JSON.stringify(angularProjectDefV17esbuild);
|
|
258
|
+
tools.logInfo(`----using angularProjectDefV17esbuild`);
|
|
259
|
+
} else {
|
|
260
|
+
projectDef = JSON.stringify(angularProjectDefV17);
|
|
261
|
+
tools.logInfo(`----using angularProjectDefV17`);
|
|
262
|
+
}
|
|
257
263
|
} else {
|
|
258
264
|
if (project.build && project.build.csdrFileReplacement === true) {
|
|
259
265
|
projectDef = JSON.stringify(angularProjectLightDef);
|
|
@@ -543,6 +543,147 @@ module.exports.angularProjectDefV14 = {
|
|
|
543
543
|
|
|
544
544
|
|
|
545
545
|
module.exports.angularProjectDefV17 = {
|
|
546
|
+
"root": "",
|
|
547
|
+
"sourceRoot": "apps/@project.name@/src",
|
|
548
|
+
"projectType": "application",
|
|
549
|
+
"prefix": "app",
|
|
550
|
+
"schematics": {
|
|
551
|
+
"@schematics/angular:component": {
|
|
552
|
+
"style": "scss"
|
|
553
|
+
},
|
|
554
|
+
"@schematics/angular:application": {
|
|
555
|
+
"strict": true
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"architect": {
|
|
559
|
+
"lint": {
|
|
560
|
+
"builder": "@angular-eslint/builder:lint",
|
|
561
|
+
"options": {
|
|
562
|
+
"lintFilePatterns": [
|
|
563
|
+
"apps/@project.name@/**/*.ts",
|
|
564
|
+
"apps/@project.name@/**/*.html"
|
|
565
|
+
],
|
|
566
|
+
"eslintConfig": "apps/@project.name@/.eslintrc.json"
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"build": {
|
|
570
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
571
|
+
"options": {
|
|
572
|
+
"outputPath": "apps/@project.name@/dist",
|
|
573
|
+
"index": "apps/@project.name@/src/index.html",
|
|
574
|
+
"main": "apps/@project.name@/src/main.ts",
|
|
575
|
+
"polyfills": "apps/@project.name@/src/polyfills.ts",
|
|
576
|
+
"tsConfig": "apps/@project.name@/tsconfig.app.json",
|
|
577
|
+
"assets": [
|
|
578
|
+
"apps/@project.name@/src/favicon.ico",
|
|
579
|
+
"apps/@project.name@/src/assets",
|
|
580
|
+
{
|
|
581
|
+
"glob": "**/*",
|
|
582
|
+
"input": "node_modules/@eui/core/assets/",
|
|
583
|
+
"output": "./assets"
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"styles": [
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
"configurations": {
|
|
590
|
+
"production": {
|
|
591
|
+
"fileReplacements": [
|
|
592
|
+
{
|
|
593
|
+
"replace": "apps/@project.name@/src/environments/environment.ts",
|
|
594
|
+
"with": "apps/@project.name@/src/environments/environment.prod.ts"
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
"outputHashing": "all",
|
|
598
|
+
"extractLicenses": true,
|
|
599
|
+
"budgets": [
|
|
600
|
+
{
|
|
601
|
+
"type": "initial",
|
|
602
|
+
"maximumWarning": "2mb",
|
|
603
|
+
"maximumError": "8mb"
|
|
604
|
+
}
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
"production-optimized": {
|
|
608
|
+
"fileReplacements": [
|
|
609
|
+
{
|
|
610
|
+
"replace": "apps/@project.name@/src/environments/environment.ts",
|
|
611
|
+
"with": "apps/@project.name@/src/environments/environment.prod.ts"
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
"optimization": {
|
|
615
|
+
"scripts": true,
|
|
616
|
+
"styles": {
|
|
617
|
+
"minify": false,
|
|
618
|
+
"inlineCritical": true
|
|
619
|
+
},
|
|
620
|
+
"fonts": true
|
|
621
|
+
},
|
|
622
|
+
"outputHashing": "all",
|
|
623
|
+
"extractLicenses": true,
|
|
624
|
+
"budgets": [
|
|
625
|
+
{
|
|
626
|
+
"type": "initial",
|
|
627
|
+
"maximumWarning": "2mb",
|
|
628
|
+
"maximumError": "8mb"
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
"production-optimized-no-openid": {
|
|
633
|
+
"fileReplacements": [
|
|
634
|
+
{
|
|
635
|
+
"replace": "apps/@project.name@/src/environments/environment.ts",
|
|
636
|
+
"with": "apps/@project.name@/src/environments/environment.prod.ts"
|
|
637
|
+
}
|
|
638
|
+
],
|
|
639
|
+
"optimization": {
|
|
640
|
+
"scripts": true,
|
|
641
|
+
"styles": {
|
|
642
|
+
"minify": false,
|
|
643
|
+
"inlineCritical": true
|
|
644
|
+
},
|
|
645
|
+
"fonts": true
|
|
646
|
+
},
|
|
647
|
+
"outputHashing": "all",
|
|
648
|
+
"extractLicenses": true,
|
|
649
|
+
"budgets": [
|
|
650
|
+
{
|
|
651
|
+
"type": "initial",
|
|
652
|
+
"maximumWarning": "2mb",
|
|
653
|
+
"maximumError": "8mb"
|
|
654
|
+
}
|
|
655
|
+
]
|
|
656
|
+
},
|
|
657
|
+
"development": {
|
|
658
|
+
"optimization": false,
|
|
659
|
+
"sourceMap": true
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"defaultConfiguration": "production"
|
|
663
|
+
},
|
|
664
|
+
"serve": {
|
|
665
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
666
|
+
"options": {
|
|
667
|
+
"browserTarget": "@project.name@:build"
|
|
668
|
+
},
|
|
669
|
+
"configurations": {
|
|
670
|
+
"proxy-mock": {
|
|
671
|
+
"browserTarget": "@project.name@:build:development",
|
|
672
|
+
"proxyConfig": "apps/@project.name@/proxy-mock.conf.json"
|
|
673
|
+
},
|
|
674
|
+
"production": {
|
|
675
|
+
"browserTarget": "@project.name@:build:production"
|
|
676
|
+
},
|
|
677
|
+
"development": {
|
|
678
|
+
"browserTarget": "@project.name@:build:development"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"defaultConfiguration": "development"
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
module.exports.angularProjectDefV17esbuild = {
|
|
546
687
|
"root": "",
|
|
547
688
|
"sourceRoot": "apps/@project.name@/src",
|
|
548
689
|
"projectType": "application",
|
|
@@ -573,7 +714,8 @@ module.exports.angularProjectDefV17 = {
|
|
|
573
714
|
"index": "apps/@project.name@/src/index.html",
|
|
574
715
|
"browser": "apps/@project.name@/src/main.ts",
|
|
575
716
|
"polyfills": [
|
|
576
|
-
"zone.js"
|
|
717
|
+
"zone.js",
|
|
718
|
+
"event-source-polyfill"
|
|
577
719
|
],
|
|
578
720
|
"tsConfig": "apps/@project.name@/tsconfig.app.json",
|
|
579
721
|
"assets": [
|
|
@@ -60,6 +60,8 @@ const getCompositeDepsByEnv = (compositePath, envTarget, compositeType, envsMeta
|
|
|
60
60
|
|
|
61
61
|
// if default composite type then we iterate over all detected composite files by env
|
|
62
62
|
if (compositeType === 'DEFAULT') {
|
|
63
|
+
let depsToResolve = false;
|
|
64
|
+
|
|
63
65
|
return Promise.resolve()
|
|
64
66
|
.then(() => {
|
|
65
67
|
tools.logTitle('Processing accumulated composites for ALL composite types');
|
|
@@ -69,13 +71,27 @@ const getCompositeDepsByEnv = (compositePath, envTarget, compositeType, envsMeta
|
|
|
69
71
|
filesByEnv.forEach((f) => {
|
|
70
72
|
tools.logInfo(`Parsing : ${f}`);
|
|
71
73
|
const compositeFile = path.join(process.cwd(), compositePath, f);
|
|
72
|
-
const fileDeps = tools.getJsonFileContent(compositeFile)
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
const fileDeps = tools.getJsonFileContent(compositeFile);
|
|
75
|
+
const deps = fileDeps.lockedDependencies || fileDeps.forcedCarretDependencies || {};
|
|
76
|
+
console.log(JSON.stringify(deps, null, 2));
|
|
77
|
+
returnedDeps = { ...returnedDeps, ...deps};
|
|
78
|
+
if (fileDeps.forcedCarretDependencies) {
|
|
79
|
+
depsToResolve = true;
|
|
80
|
+
}
|
|
75
81
|
});
|
|
76
82
|
|
|
77
83
|
return { ...prevEnvDeps, ...returnedDeps };
|
|
78
84
|
})
|
|
85
|
+
|
|
86
|
+
.then((deps) => {
|
|
87
|
+
if (depsToResolve) {
|
|
88
|
+
tools.logInfo('Resolving forced dependencies for env');
|
|
89
|
+
return innerCommon.getResolvedCarretDeps(deps, true, false);
|
|
90
|
+
} else {
|
|
91
|
+
return deps;
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
|
|
79
95
|
.then((deps) => {
|
|
80
96
|
tools.logInfo('Scanning resulting deps for RC detection (do avoid RC spreading up to non DEV envs)');
|
|
81
97
|
const depsToScan = Object.keys(deps);
|