@eui/tools 6.13.7 → 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.
@@ -1 +1 @@
1
- 6.13.7
1
+ 6.13.8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
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
+ * * *
1
10
  ## 6.13.7 (2023-11-06)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.13.7",
3
+ "version": "6.13.8",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -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
- projectDef = JSON.stringify(angularProjectDefV17);
256
- tools.logInfo(`----using angularProjectDefV17`);
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": [