@eui/tools 6.13.0 → 6.13.1

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.0
1
+ 6.13.1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.13.1 (2023-10-14)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted v17 skeletons adding option to disable esbuild through config (issue with latest angular) - EUI-7843 [EUI-7843](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7843) ([242c8ca2](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/242c8ca2d903ce4543d20bf936298b83f6c7c480))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.13.0 (2023-10-12)
2
11
 
3
12
  ##### New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.13.0",
3
+ "version": "6.13.1",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -22,6 +22,7 @@ const {
22
22
  angularProjectDefFullSkeletonV13,
23
23
  angularProjectDefFullSkeletonV14,
24
24
  angularProjectDefFullSkeletonV17,
25
+ angularProjectDefFullSkeletonV17esbuild,
25
26
  angularProjectDefConfiguration,
26
27
  angularProjectDefConfigurationHost,
27
28
  angularProjectDefConfigurationLight,
@@ -231,8 +232,13 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
231
232
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV14);
232
233
  tools.logInfo(`----using angularProjectDefFullSkeletonV14`);
233
234
  } else if (euiVersion === '17.x') {
234
- projectDef = JSON.stringify(angularProjectDefFullSkeletonV17);
235
- tools.logInfo(`----using angularProjectDefFullSkeletonV17`);
235
+ if (project.build.esbuild) {
236
+ projectDef = JSON.stringify(angularProjectDefFullSkeletonV17esbuild);
237
+ tools.logInfo(`----using angularProjectDefFullSkeletonV17esbuild`);
238
+ } else {
239
+ projectDef = JSON.stringify(angularProjectDefFullSkeletonV17);
240
+ tools.logInfo(`----using angularProjectDefFullSkeletonV17`);
241
+ }
236
242
  } else {
237
243
  projectDef = JSON.stringify(angularProjectDefFullSkeleton);
238
244
  tools.logInfo(`----using angularProjectDefFullSkeleton`);
@@ -1143,9 +1143,130 @@ module.exports.angularProjectDefFullSkeletonV14 = {
1143
1143
  }
1144
1144
  };
1145
1145
 
1146
+ module.exports.angularProjectDefFullSkeletonV17 = {
1147
+ "root": "",
1148
+ "sourceRoot": "apps/@project.name@/src",
1149
+ "projectType": "application",
1150
+ "prefix": "app",
1151
+ "schematics": {
1152
+ "@schematics/angular:component": {
1153
+ "style": "scss"
1154
+ },
1155
+ "@schematics/angular:application": {
1156
+ "strict": true
1157
+ }
1158
+ },
1159
+ "architect": {
1160
+ "build": {
1161
+ "builder": "@angular-devkit/build-angular:browser",
1162
+ "options": {
1163
+ "outputPath": "apps/@project.name@/dist",
1164
+ "index": "apps/@project.name@/src/index.html",
1165
+ "main": "apps/@project.name@/src/_generated/main.ts",
1166
+ "polyfills": "apps/@project.name@/src/_generated/polyfills.ts",
1167
+ "tsConfig": "apps/@project.name@/tsconfig.app.json",
1168
+ "assets": [
1169
+ "apps/@project.name@/src/favicon.ico",
1170
+ "apps/@project.name@/src/assets",
1171
+ {
1172
+ "glob": "**/*",
1173
+ "input": "node_modules/@eui/core/assets/",
1174
+ "output": "./assets"
1175
+ }
1176
+ ],
1177
+ "styles": [
1178
+ ]
1179
+ },
1180
+ "configurations": {
1181
+ "production": {
1182
+ "fileReplacements": [
1183
+ {
1184
+ "replace": "apps/@project.name@/src/_generated/environments/environment.ts",
1185
+ "with": "apps/@project.name@/src/_generated/environments/environment.prod.ts"
1186
+ }
1187
+ ],
1188
+ "optimization": false,
1189
+ "outputHashing": "all",
1190
+ "sourceMap": false,
1191
+ "namedChunks": true,
1192
+ "aot": true,
1193
+ "extractLicenses": true,
1194
+ "vendorChunk": false,
1195
+ "buildOptimizer": false,
1196
+ "budgets": [
1197
+ {
1198
+ "type": "initial",
1199
+ "maximumWarning": "2mb",
1200
+ "maximumError": "10mb"
1201
+ }
1202
+ ]
1203
+ },
1204
+ "production-optimized-no-openid": {
1205
+ "fileReplacements": [
1206
+ {
1207
+ "replace": "apps/@project.name@/src/_generated/environments/environment.ts",
1208
+ "with": "apps/@project.name@/src/_generated/environments/environment.prod.ts"
1209
+ }
1210
+ ],
1211
+ "optimization": {
1212
+ "scripts": true,
1213
+ "styles": {
1214
+ "minify": false,
1215
+ "inlineCritical": true
1216
+ },
1217
+ "fonts": true
1218
+ },
1219
+ "outputHashing": "all",
1220
+ "sourceMap": false,
1221
+ "namedChunks": true,
1222
+ "aot": true,
1223
+ "extractLicenses": true,
1224
+ "vendorChunk": false,
1225
+ "buildOptimizer": true,
1226
+ "budgets": [
1227
+ {
1228
+ "type": "initial",
1229
+ "maximumWarning": "2mb",
1230
+ "maximumError": "10mb"
1231
+ }
1232
+ ]
1233
+ },
1234
+ "development": {
1235
+ "buildOptimizer": false,
1236
+ "optimization": false,
1237
+ "vendorChunk": true,
1238
+ "extractLicenses": false,
1239
+ "sourceMap": true,
1240
+ "namedChunks": true
1241
+ }
1242
+ },
1243
+ "defaultConfiguration": "production"
1244
+ },
1245
+ "serve": {
1246
+ "builder": "@angular-devkit/build-angular:dev-server",
1247
+ "options": {
1248
+ "browserTarget": "@project.name@:build"
1249
+ },
1250
+ "configurations": {
1251
+ "proxy-mock": {
1252
+ "browserTarget": "@project.name@:build",
1253
+ "proxyConfig": "apps/@project.name@/proxy-mock.conf.json"
1254
+ },
1255
+ "production": {
1256
+ "browserTarget": "@project.name@:build:production"
1257
+ },
1258
+ "development": {
1259
+ "browserTarget": "@project.name@:build:development"
1260
+ }
1261
+ },
1262
+ "defaultConfiguration": "development"
1263
+ }
1264
+ }
1265
+ };
1146
1266
 
1147
1267
 
1148
- module.exports.angularProjectDefFullSkeletonV17 = {
1268
+
1269
+ module.exports.angularProjectDefFullSkeletonV17esbuild = {
1149
1270
  "root": "",
1150
1271
  "sourceRoot": "apps/@project.name@/src",
1151
1272
  "projectType": "application",
@@ -0,0 +1,86 @@
1
+ /**
2
+ * This file includes polyfills needed by Angular and is loaded before the app.
3
+ * You can add your own extra polyfills to this file.
4
+ *
5
+ * This file is divided into 2 sections:
6
+ * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
7
+ * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
8
+ * file.
9
+ *
10
+ * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11
+ * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12
+ * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
13
+ *
14
+ * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
15
+ */
16
+
17
+ /***************************************************************************************************
18
+ * BROWSER POLYFILLS
19
+ */
20
+
21
+ /** IE9, IE10 and IE11 requires all of the following polyfills. **/
22
+ // import 'core-js/es6/symbol';
23
+ // import 'core-js/es6/object';
24
+ // import 'core-js/es6/function';
25
+ // import 'core-js/es6/parse-int';
26
+ // import 'core-js/es6/parse-float';
27
+ // import 'core-js/es6/number';
28
+ // import 'core-js/es6/math';
29
+ // import 'core-js/es6/string';
30
+ // import 'core-js/es6/date';
31
+ // import 'core-js/es6/array';
32
+ // import 'core-js/es6/regexp';
33
+ // import 'core-js/es6/map';
34
+ // import 'core-js/es6/weak-map';
35
+ // import 'core-js/es6/set';
36
+
37
+ /** IE10 and IE11 requires the following for NgClass support on SVG elements */
38
+ // import 'classlist.js'; // Run `npm install --save classlist.js`.
39
+
40
+ /** IE10 and IE11 requires the following for the Reflect API. */
41
+ // import 'core-js/es6/reflect';
42
+
43
+ /** Evergreen browsers require these. **/
44
+ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
45
+ // import 'core-js/es7/reflect';
46
+
47
+ /**
48
+ * Web Animations `@angular/platform-browser/animations`
49
+ * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
50
+ * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
51
+ **/
52
+ // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
53
+
54
+ /**
55
+ * By default, zone.js will patch all possible macroTask and DomEvents
56
+ * user can disable parts of macroTask/DomEvents patch by setting following flags
57
+ */
58
+
59
+ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
60
+ // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
61
+ // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
62
+
63
+ /*
64
+ * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
65
+ * with the following flag, it will bypass `zone.js` patch for IE/Edge
66
+ */
67
+ // (window as any).__Zone_enable_cross_context_check = true;
68
+
69
+ /***************************************************************************************************
70
+ * Zone JS is required by default for Angular itself.
71
+ */
72
+ import 'zone.js'; // Included with Angular CLI.
73
+
74
+ /***************************************************************************************************
75
+ * APPLICATION IMPORTS
76
+ */
77
+
78
+ /**
79
+ * Date, currency, decimal and percent pipes.
80
+ * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
81
+ */
82
+ // import 'intl'; // Run `npm install --save intl`.
83
+ /**
84
+ * Need to import at least one locale-data with intl.
85
+ */
86
+ // import 'intl/locale-data/jsonp/en';