@eui/tools 6.21.7 → 6.21.9

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.21.7
1
+ 6.21.9
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.9 (2024-11-26)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted project def injection to v19 - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([a9c0e82b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a9c0e82bb2f7503e89b9ea4f1ff6b745cdc2d6c0))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.8 (2024-11-15)
11
+
12
+ ##### Chores
13
+
14
+ * **remote:**
15
+ * add buildDate to the remote assets metadata - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([1a1ba23d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1a1ba23d5cbeb52064bfe719d6010a2430e66262))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.7 (2024-10-31)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.7",
3
+ "version": "6.21.9",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -18,6 +18,7 @@ const {
18
18
  angularProjectDefV14,
19
19
  angularProjectDefV17,
20
20
  angularProjectDefV17esbuild,
21
+ angularProjectDefV19esbuild,
21
22
  angularProjectLightDef,
22
23
  angularProjectDefFullSkeleton,
23
24
  angularProjectDefFullSkeletonV13,
@@ -274,9 +275,12 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
274
275
  } else if (euiVersion === '17.x') {
275
276
  projectDef = JSON.stringify(angularProjectDefV17);
276
277
  tools.logInfo(`----using angularProjectDefV17`);
277
- } else if (packageEuiVersionNumber >= 18) {
278
+ } else if (packageEuiVersionNumber === 18 && packageEuiVersionNumber < 19) {
278
279
  projectDef = JSON.stringify(angularProjectDefV17esbuild);
279
280
  tools.logInfo(`----using angularProjectDefV17esbuild`);
281
+ } else if (packageEuiVersionNumber >= 19) {
282
+ projectDef = JSON.stringify(angularProjectDefV19esbuild);
283
+ tools.logInfo(`----using angularProjectDefV19esbuild`);
280
284
  } else {
281
285
  if (project.build && project.build.csdrFileReplacement === true) {
282
286
  projectDef = JSON.stringify(angularProjectLightDef);
@@ -827,6 +827,150 @@ module.exports.angularProjectDefV17esbuild = {
827
827
  }
828
828
  };
829
829
 
830
+ module.exports.angularProjectDefV19esbuild = {
831
+ "root": "",
832
+ "sourceRoot": "apps/@project.name@/src",
833
+ "projectType": "application",
834
+ "prefix": "app",
835
+ "schematics": {
836
+ "@schematics/angular:component": {
837
+ "style": "scss"
838
+ },
839
+ "@schematics/angular:application": {
840
+ "strict": true
841
+ }
842
+ },
843
+ "architect": {
844
+ "lint": {
845
+ "builder": "@angular-eslint/builder:lint",
846
+ "options": {
847
+ "lintFilePatterns": [
848
+ "apps/@project.name@/**/*.ts",
849
+ "apps/@project.name@/**/*.html"
850
+ ],
851
+ "eslintConfig": "apps/@project.name@/.eslintrc.json"
852
+ }
853
+ },
854
+ "build": {
855
+ "builder": "@angular-devkit/build-angular:application",
856
+ "options": {
857
+ "outputPath": "apps/@project.name@/dist",
858
+ "index": "apps/@project.name@/src/index.html",
859
+ "browser": "apps/@project.name@/src/main.ts",
860
+ "polyfills": [
861
+ "zone.js",
862
+ "event-source-polyfill"
863
+ ],
864
+ "tsConfig": "apps/@project.name@/tsconfig.app.json",
865
+ "assets": [
866
+ "apps/@project.name@/src/favicon.ico",
867
+ "apps/@project.name@/src/assets",
868
+ {
869
+ "glob": "**/*",
870
+ "input": "node_modules/@eui/core/assets/",
871
+ "output": "./assets"
872
+ }
873
+ ],
874
+ "styles": [
875
+ ]
876
+ },
877
+ "configurations": {
878
+ "production": {
879
+ "fileReplacements": [
880
+ {
881
+ "replace": "apps/@project.name@/src/environments/environment.ts",
882
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
883
+ }
884
+ ],
885
+ "outputHashing": "all",
886
+ "extractLicenses": true,
887
+ "budgets": [
888
+ {
889
+ "type": "initial",
890
+ "maximumWarning": "2mb",
891
+ "maximumError": "8mb"
892
+ }
893
+ ]
894
+ },
895
+ "production-optimized": {
896
+ "fileReplacements": [
897
+ {
898
+ "replace": "apps/@project.name@/src/environments/environment.ts",
899
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
900
+ }
901
+ ],
902
+ "optimization": {
903
+ "scripts": true,
904
+ "styles": {
905
+ "minify": false,
906
+ "inlineCritical": true
907
+ },
908
+ "fonts": true
909
+ },
910
+ "outputHashing": "all",
911
+ "extractLicenses": true,
912
+ "budgets": [
913
+ {
914
+ "type": "initial",
915
+ "maximumWarning": "2mb",
916
+ "maximumError": "8mb"
917
+ }
918
+ ]
919
+ },
920
+ "production-optimized-no-openid": {
921
+ "fileReplacements": [
922
+ {
923
+ "replace": "apps/@project.name@/src/environments/environment.ts",
924
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
925
+ }
926
+ ],
927
+ "optimization": {
928
+ "scripts": true,
929
+ "styles": {
930
+ "minify": false,
931
+ "inlineCritical": true
932
+ },
933
+ "fonts": true
934
+ },
935
+ "outputHashing": "all",
936
+ "extractLicenses": true,
937
+ "budgets": [
938
+ {
939
+ "type": "initial",
940
+ "maximumWarning": "2mb",
941
+ "maximumError": "8mb"
942
+ }
943
+ ]
944
+ },
945
+ "development": {
946
+ "optimization": false,
947
+ "sourceMap": true
948
+ }
949
+ },
950
+ "defaultConfiguration": "production"
951
+ },
952
+ "serve": {
953
+ "builder": "@angular-devkit/build-angular:dev-server",
954
+ "options": {
955
+ "buildTarget": "@project.name@:build"
956
+ },
957
+ "configurations": {
958
+ "proxy-mock": {
959
+ "buildTarget": "@project.name@:build:development",
960
+ "proxyConfig": "apps/@project.name@/proxy-mock.conf.json"
961
+ },
962
+ "production": {
963
+ "buildTarget": "@project.name@:build:production"
964
+ },
965
+ "development": {
966
+ "buildTarget": "@project.name@:build:development"
967
+ }
968
+ },
969
+ "defaultConfiguration": "development"
970
+ }
971
+ }
972
+ };
973
+
830
974
 
831
975
 
832
976
  module.exports.angularProjectLightDef = {
@@ -153,6 +153,7 @@ module.exports.storeMetadataAssets = (pkg, pkgCompositeDeps) => {
153
153
 
154
154
  const pkgMetadata = {
155
155
  dependencies: pkgCompositeDeps,
156
+ buildDate: moment(new Date()).format("DD/MM/YYYY HH:mm"),
156
157
  };
157
158
 
158
159
  if (dryRun) {
@@ -69,9 +69,6 @@ module.exports.angular = (
69
69
  tools.logInfo('With build params : ');
70
70
  console.log(envTarget, isSnapshot, version, configEnvTargetIn);
71
71
 
72
- tools.logInfo('With CLI args provided :');
73
- console.log(tools.getArgs());
74
-
75
72
  const ng = path.resolve(currentProject.paths.nodeModulesPath, '@angular', 'cli', 'bin', 'ng');
76
73
 
77
74
  // checking if configEnvTarget is passed as param, if not take the global script param