@eui/tools 4.18.3 → 4.18.7

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
- 4.18.3
1
+ 4.18.7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ ## 4.18.7 (2022-01-03)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * quill cleanup MWP-7583 [MWP-7583](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7583) ([f0916a9c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/f0916a9cda61a182308f55b051d2d523feda21c8))
7
+ * add host-zone MWP-7583 [MWP-7583](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7583) ([01cda40d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/01cda40db9d393c3ee8f24aa0a42239ad3f37c7a))
8
+
9
+ * * *
10
+ * * *
11
+ ## 4.18.6 (2021-12-15)
12
+
13
+ ##### Bug Fixes
14
+
15
+ * **other:**
16
+ * release app script wrong condition on branch - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([f3745bc1](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/f3745bc13749503726bfbdd11832e90401f59ba6))
17
+
18
+ * * *
19
+ * * *
20
+ ## 4.18.5 (2021-12-15)
21
+
22
+ ##### Bug Fixes
23
+
24
+ * **other:**
25
+ * adapted release-app script taking care of support snapshot builds - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([d4ac56bd](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d4ac56bdf236fab1e4601d6963df668002d31607))
26
+
27
+ * * *
28
+ * * *
29
+ ## 4.18.4 (2021-12-15)
30
+
31
+ ##### Chores
32
+
33
+ * **other:**
34
+ * fix dependencies resolution for support snapshot - enabled prevSnapshot deps fetch from metadata option - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([1e270e30](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1e270e305eacca555fce441366de86a9dc2fa722))
35
+
36
+ * * *
37
+ * * *
1
38
  ## 4.18.3 (2021-12-15)
2
39
 
3
40
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.18.3",
3
+ "version": "4.18.7",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -633,8 +633,8 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
633
633
 
634
634
  return Promise.resolve()
635
635
  .then(() => {
636
- const prjName = 'my-workplace';
636
+ const prjName = 'eui-showcase-ux';
637
637
  const prj = configUtils.projects.getCsdrProject(prjName);
638
638
 
639
- return injectionUtils.externals.remapRoutesByEnvConfig(prj, 'TRN', true);
639
+ return compositeUtils.getDeps(prj, 'TST');
640
640
  })
@@ -53,6 +53,7 @@ import {
53
53
  ELEMENT_ROUTER_TOKEN,
54
54
  I18N_SERVICE_HOST_TOKEN,
55
55
  I18nServiceMapping,
56
+ NG_ZONE_HOST_TOKEN,
56
57
  PUSH_NOTIFICATION_SERVICE_HOST_TOKEN,
57
58
  PushNotificationServiceMapping,
58
59
  USER_SERVICE_HOST_TOKEN,
@@ -150,6 +151,7 @@ export function openidConnectInterceptorFactory(config) {
150
151
  { provide: USER_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UserService'] },
151
152
  { provide: UX_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxService'] },
152
153
  { provide: UX_APP_SHELL_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxAppShellService'] },
154
+ { provide: NG_ZONE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['ngZone'] },
153
155
  // TODO[REMOTE-SETUP] uncomment if LanguageInterceptor or StorageService is used
154
156
  // { provide: StorageService, useFactory: () => window['PROVIDERS']['StorageService'] },
155
157
 
@@ -187,10 +189,11 @@ export function openidConnectInterceptorFactory(config) {
187
189
  storeService: StoreService,
188
190
  iI18nService: I18nService,
189
191
  hostUxService: any,
190
- hostUxAppShellService: any) => new UxAppShellServiceMapping(
191
- config, http, platformId, router, storeService, iI18nService, hostUxService, hostUxAppShellService),
192
+ hostUxAppShellService: any,
193
+ hostNgZone) => new UxAppShellServiceMapping(
194
+ config, http, platformId, router, storeService, iI18nService, hostUxService, hostUxAppShellService, hostNgZone),
192
195
  deps: [CONFIG_TOKEN, HttpClient, PLATFORM_ID, Router, StoreService, I18nService,
193
- UX_SERVICE_HOST_TOKEN, UX_APP_SHELL_SERVICE_HOST_TOKEN],
196
+ UX_SERVICE_HOST_TOKEN, UX_APP_SHELL_SERVICE_HOST_TOKEN, NG_ZONE_HOST_TOKEN],
194
197
  },
195
198
  { provide: ELEMENT_ROUTER_TOKEN, useFactory: () => window['PROVIDERS']['ELEMENT_ROUTER_TOKEN'], deps: [] },
196
199
  // TODO[REMOTE-SETUP] uncomment if zipkin is used
@@ -4,12 +4,4 @@ module.exports = {
4
4
  plugins: [
5
5
  new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
6
6
  ],
7
-
8
- // When importing a module whose path matches one of the following, just
9
- // assume a corresponding global variable exists and use that instead.
10
- // This is important because it allows us to avoid bundling all of our
11
- // dependencies, which allows browsers to cache those libraries between builds.
12
- externals: {
13
- 'quill': 'Quill',
14
- },
15
7
  }
@@ -130,6 +130,9 @@ const getRemappedDeps = (pkgDeps, pkgDefaultDeps) => {
130
130
  const getResolvedCarretDeps = (deps) => {
131
131
  tools.logTitle('Resolving carret for next version packages');
132
132
 
133
+ tools.logInfo('processing dependencies : ');
134
+ console.log(deps);
135
+
133
136
  return Promise.resolve()
134
137
  .then(() => {
135
138
 
@@ -148,6 +151,7 @@ const getResolvedCarretDeps = (deps) => {
148
151
  const lastMajorVersion = metadataUtils.package.getLastMajorVersion(pkg, version.substr(1).split('.')[0]);
149
152
 
150
153
  if (lastMajorVersion) {
154
+ tools.logInfo(`--version found : ${lastMajorVersion}`);
151
155
  acc[k] = lastMajorVersion;
152
156
 
153
157
  } else {
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const { deepStrictEqual } = require('assert');
4
3
  // global
5
4
  const path = require('path');
6
5
 
@@ -60,10 +59,10 @@ const getPackagesDepsByEnv = (prj, envTarget, compositeType) => {
60
59
  })
61
60
  .then((prjDeps) => {
62
61
  if (envTarget === 'DEV') {
63
- return getDeps_DEV(prjDeps);
62
+ return getDeps_DEV(prj, prjDeps);
64
63
  }
65
64
  if (envTarget === 'TST') {
66
- return getDeps_TST(prjDeps);
65
+ return getDeps_TST(prj, prjDeps);
67
66
  }
68
67
  if (envTarget === 'INT') {
69
68
  return getDeps_INT(prj, compositeType);
@@ -91,10 +90,16 @@ const getPackagesDepsByEnv = (prj, envTarget, compositeType) => {
91
90
  * For DEV target, we take the outermost known versions of the packages,
92
91
  * including : SNAPSHOTS & LATEST
93
92
  */
94
- const getDeps_DEV = (prjDeps) => {
93
+ const getDeps_DEV = (prj, prjDeps) => {
95
94
  return Promise.resolve()
96
95
  .then(() => {
97
- return metadataUtils.package.getPackagesDeps('packages');
96
+ if (prj.build && prj.build.prevSnapshotEnabled) {
97
+ tools.logInfo('project has prevSnapshot enabled, getting deps list from prevSnapshotsTag');
98
+ return metadataUtils.package.getPackagesDeps('packagesPrevSnapshotsTag');
99
+ } else {
100
+ tools.logInfo('getting project deps from snapshots metadata list');
101
+ return metadataUtils.package.getPackagesDeps('packages');
102
+ }
98
103
  })
99
104
 
100
105
  // Re-mapping the dependencies found against their max "carret" versions found in the base dependencies defs in the project
@@ -105,18 +110,24 @@ const getDeps_DEV = (prjDeps) => {
105
110
  .catch((e) => {
106
111
  throw e;
107
112
  })
108
- }
113
+ }
109
114
 
110
115
 
111
- /**
112
- * For TST target, we take only the LATEST know versions of the packages,
113
- * including : LATEST
116
+ /**
117
+ * For TST target, we take only the LATEST know versions of the packages,
118
+ * including : LATEST
114
119
  */
115
- const getDeps_TST = (prjDeps) => {
120
+ const getDeps_TST = (prj, prjDeps) => {
116
121
  return Promise.resolve()
117
- .then(() => {
122
+ .then(() => {
123
+ if (prj.build && prj.build.prevSnapshotEnabled) {
124
+ tools.logInfo('project has prevSnapshot enabled, getting deps list from prevTag');
125
+ return metadataUtils.package.getPackagesDeps('packagesPrevTag');
126
+ } else {
127
+ tools.logInfo('getting project deps from packagesLatest metadata list');
118
128
  return metadataUtils.package.getPackagesDeps('packagesLatestTag');
119
- })
129
+ }
130
+ })
120
131
 
121
132
  // Re-mapping the dependencies found against their max "carret" versions found in the base dependencies defs in the project
122
133
  .then((pkgDeps) => {
@@ -37,11 +37,13 @@ module.exports.run = () => {
37
37
  }
38
38
 
39
39
  // Getting branch flags
40
+ var isSupportSnapshotBranch;
40
41
  var isSupportBranch;
41
42
  var isSnapshot;
42
43
 
43
44
  if (branch) {
44
- isSupportBranch = (branch !== 'master' && branch.indexOf('support/') > -1);
45
+ isSupportSnapshotBranch = (branch !== 'master' && branch.indexOf('support/develop') > -1);
46
+ isSupportBranch = (branch !== 'master' && !isSupportSnapshotBranch && branch.indexOf('support/') > -1);
45
47
  isSnapshot = (branch !== 'master' && !isSupportBranch);
46
48
  }
47
49
 
@@ -56,7 +58,7 @@ module.exports.run = () => {
56
58
 
57
59
  // for traditional app build using develop / master branch
58
60
  } else {
59
- if (isSnapshot) {
61
+ if (isSnapshot || isSupportSnapshotBranch) {
60
62
  envTargetGen = 'DEV';
61
63
  } else {
62
64
  envTargetGen = 'TST';
@@ -145,7 +147,7 @@ module.exports.run = () => {
145
147
  .then(() => {
146
148
  utils.tools.logTitle('Getting app new version...');
147
149
 
148
- return versionUtils.app.getNewVersion(project, isSnapshot, isSupportBranch, envTarget);
150
+ return versionUtils.app.getNewVersion(project, (isSnapshot || isSupportSnapshotBranch), isSupportBranch, envTarget);
149
151
  })
150
152
  .then((version) => {
151
153
  // set the new version found for later use
@@ -199,7 +201,7 @@ module.exports.run = () => {
199
201
  // *****************************************************************
200
202
  .then(() => {
201
203
  // process v1 - diff report is generated on MASTER / TST release
202
- if (!isSnapshot && !envTarget) {
204
+ if (!isSnapshot && !isSupportSnapshotBranch && !envTarget) {
203
205
  return metadataUtils.appHistory.generateDiffReport(project, newVersion, isSupportBranch);
204
206
  }
205
207
 
@@ -256,7 +258,7 @@ module.exports.run = () => {
256
258
  // BUILD ANGULAR APPLICATION
257
259
  // *****************************************************************
258
260
  .then(() => {
259
- return utils.buildApp.angular(envTarget, isSnapshot, newVersion);
261
+ return utils.buildApp.angular(envTarget, (isSnapshot || isSupportSnapshotBranch), newVersion);
260
262
  })
261
263
 
262
264
 
@@ -285,7 +287,7 @@ module.exports.run = () => {
285
287
  if (project.build && project.build.distribution) {
286
288
  return Promise.resolve()
287
289
  .then(() => {
288
- return utils.buildApp.generateProjectDistributionFile(project, isSnapshot);
290
+ return utils.buildApp.generateProjectDistributionFile(project, (isSnapshot || isSupportSnapshotBranch));
289
291
  })
290
292
  .catch((e) => {
291
293
  throw e;
@@ -338,7 +340,7 @@ module.exports.run = () => {
338
340
  .then(() => {
339
341
  // for env-target based builds, no need to merge anything back as it only contains a master branch for sources
340
342
  if (!envTarget) {
341
- if (!isSnapshot && !isSupportBranch) {
343
+ if (!isSnapshot && !isSupportBranch && !isSupportSnapshotBranch) {
342
344
  return utils.git.mergeMasterToDevelop(project, project.folder);
343
345
  }
344
346
  }