@eui/tools 4.17.1 → 4.17.5

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.17.1
1
+ 4.17.5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,43 @@
1
+ ## 4.17.5 (2021-11-25)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * eui10 element creation adaptation MWP-7583 [MWP-7583](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7583) ([0165130e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0165130e42ff83aa343bedb98da13c1c608f442f))
7
+
8
+ * * *
9
+ * * *
10
+ ## 4.17.4 (2021-11-24)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * removed yarn.lock injection - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([5bd7860f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5bd7860f8d1296aeca3ed899cbb334d5cef56e15))
16
+
17
+ * * *
18
+ * * *
19
+ ## 4.17.3 (2021-11-24)
20
+
21
+ ##### Chores
22
+
23
+ * **other:**
24
+ * update comments for setup on remote v7 ([00b827d7](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/00b827d72f0ce558e6b854ac9ebe9a8a2a9005fc))
25
+ ##### Bug Fixes
26
+
27
+ * **other:**
28
+ * remote package metadata location - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([ca8e4e5a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ca8e4e5a8d94a98c42e8e14e2eb0a21f8010aa91))
29
+
30
+ * * *
31
+ * * *
32
+ ## 4.17.2 (2021-11-23)
33
+
34
+ ##### Chores
35
+
36
+ * **other:**
37
+ * adding yarn.lock forcing for eUI 13.x - added metadata assets storage for remote elements - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([5e940892](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5e940892aa982ef9286553696a9c54ffddecfde1))
38
+
39
+ * * *
40
+ * * *
1
41
  ## 4.17.1 (2021-11-19)
2
42
 
3
43
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.17.1",
3
+ "version": "4.17.5",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -599,7 +599,21 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
599
599
  // })
600
600
  return Promise.resolve()
601
601
  .then(() => {
602
- return metadataUtils.app.storeMetadataAssetsStandAlone();
602
+ console.log('t1')
603
+ console.log(new Date());
604
+
605
+ return new Promise((resolve) => {
606
+ setTimeout(resolve, 8000);
607
+ });
608
+ })
609
+
610
+ .then(() => {
611
+ console.log('t2')
612
+ console.log(new Date());
613
+ })
614
+
615
+ .then(() => {
616
+ console.log('T3')
603
617
  })
604
618
 
605
619
  // return Promise.resolve()
@@ -43,7 +43,8 @@ import { CustomSerializer } from './reducers/custom-route-serializer';
43
43
 
44
44
  import { environment } from '../environments/environment';
45
45
 
46
- // import { TaskMgrCommonModule } from '@cc/task-manager'; // TODO import from package
46
+ // TODO[REMOTE-SETUP] - import from wrapped package
47
+ // import { TaskMgrCommonModule } from '@cc/task-manager';
47
48
  import { ELEMENT_ROUTER_TOKEN, PushNotificationMapping, UxServiceMapping } from '@csdr/integration';
48
49
  import { RoutingModule } from './routing.module';
49
50
 
@@ -66,7 +67,8 @@ export function openidConnectInterceptorFactory(config) {
66
67
  TranslateModule,
67
68
 
68
69
  UxAllModule,
69
- // TaskMgrCommonModule, // TODO import from package
70
+ // TODO import from package
71
+ // TaskMgrCommonModule,
70
72
  RoutingModule,
71
73
  ],
72
74
  declarations: [
@@ -46,6 +46,7 @@ import {
46
46
  USER_SERVICE_HOST_TOKEN,
47
47
  UserMapping,
48
48
  UX_SERVICE_HOST_TOKEN,
49
+ UX_APP_SHELL_SERVICE_HOST_TOKEN,
49
50
  UxAppShellServiceMapping,
50
51
  } from '@csdr/integration';
51
52
  import { RoutingModule } from './routing.module';
@@ -84,7 +85,7 @@ export function openidConnectInterceptorFactory(config) {
84
85
  reducerProvider,
85
86
  {
86
87
  provide: EUI_CONFIG_TOKEN,
87
- useValue: { appConfig, environment },
88
+ useValue: { appConfig: { ...appConfig, ...environment }, environment },
88
89
  },
89
90
  {
90
91
  provide: HTTP_INTERCEPTORS,
@@ -123,6 +124,7 @@ export function openidConnectInterceptorFactory(config) {
123
124
  // used in the el-mappers
124
125
  { provide: USER_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UserService'] },
125
126
  { provide: UX_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxService'] },
127
+ { provide: UX_APP_SHELL_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxAppShellService'] },
126
128
 
127
129
  {
128
130
  provide: PushNotificationsService,
@@ -143,9 +145,11 @@ export function openidConnectInterceptorFactory(config) {
143
145
  router: Router,
144
146
  storeService: StoreService,
145
147
  iI18nService: I18nService,
146
- hostUserService: any) => new UxAppShellServiceMapping(
147
- config, http, platformId, router, storeService, iI18nService, hostUserService),
148
- deps: [CONFIG_TOKEN, HttpClient, PLATFORM_ID, Router, StoreService, I18nService, UX_SERVICE_HOST_TOKEN],
148
+ hostUxService: any,
149
+ hostUxAppShellService: any) => new UxAppShellServiceMapping(
150
+ config, http, platformId, router, storeService, iI18nService, hostUxService, hostUxAppShellService),
151
+ deps: [CONFIG_TOKEN, HttpClient, PLATFORM_ID, Router, StoreService, I18nService,
152
+ UX_SERVICE_HOST_TOKEN, UX_APP_SHELL_SERVICE_HOST_TOKEN],
149
153
  },
150
154
  { provide: ELEMENT_ROUTER_TOKEN, useFactory: () => window['PROVIDERS']['ELEMENT_ROUTER_TOKEN'], deps: [] },
151
155
  // TODO[REMOTE-SETUP] uncomment if zipkin is used
@@ -679,7 +679,8 @@ const tsConfigDef = {
679
679
  ],
680
680
  "lib": [
681
681
  "es2017",
682
- "dom"
682
+ "dom",
683
+ "dom.iterable"
683
684
  ],
684
685
  "paths": {}
685
686
  }
@@ -217,6 +217,13 @@ module.exports.processLocalEuiVersions = () => {
217
217
  const blDestFile = path.join(process.cwd(), '.browserslistrc');
218
218
 
219
219
  tools.copy(blResourcesFile, blDestFile);
220
+
221
+ // tools.logInfo(`Processing yarn.lock replacement for eUI version found : ${euiVersion}`);
222
+
223
+ // const yResourcesFile = path.join(__dirname, 'resources', euiVersion, 'yarn.lock');
224
+ // const yDestFile = path.join(process.cwd(), 'yarn.lock');
225
+
226
+ // tools.copy(yResourcesFile, yDestFile);
220
227
  }
221
228
  })
222
229
  .catch((e) => {
@@ -377,6 +377,29 @@ const storePipelineMetadata = module.exports.storePipelineMetadata = (pkgMetadat
377
377
  }
378
378
 
379
379
 
380
+ module.exports.storeMetadataAssets = (pkg, pkgCompositeDeps) => {
381
+ return Promise.resolve()
382
+ .then(() => {
383
+ const pkgMetadataFile = path.join(pkg.paths.pkgBuild, 'bundles', 'package-metadata.json');
384
+
385
+ const pkgMetadata = {
386
+ dependencies: pkgCompositeDeps
387
+ };
388
+
389
+ tools.logInfo(`Creating ${pkgMetadataFile}`);
390
+ console.log(pkgMetadata);
391
+
392
+ if (!dryRun) {
393
+ return tools.writeJsonFileSync(pkgMetadataFile, pkgMetadata);
394
+ }
395
+ })
396
+
397
+ .catch((e) => {
398
+ throw e;
399
+ })
400
+ }
401
+
402
+
380
403
  module.exports.getPackageVersionsJson = (pkg) => {
381
404
  if (!pkg) {
382
405
  tools.logWarning('provided pkg is empty...skipping');
@@ -259,6 +259,19 @@ module.exports.postBuild = (pkg, version) => {
259
259
  }
260
260
 
261
261
 
262
+ module.exports.storeMetadataAssets = (pkg, pkgCompositeDeps) => {
263
+ return Promise.resolve()
264
+ .then(() => {
265
+ if (pkg.remote) {
266
+ return metadataUtils.package.storeMetadataAssets(pkg, pkgCompositeDeps);
267
+ }
268
+ })
269
+
270
+ .catch((e) => {
271
+ throw e;
272
+ })
273
+ }
274
+
262
275
  module.exports.runGitOperations = (pkg, version) => {
263
276
 
264
277
  const branches = this.getBranches();
@@ -133,6 +133,12 @@ module.exports.run = () => {
133
133
  })
134
134
 
135
135
 
136
+ // STORING METADATA ASSETS
137
+ .then(() => {
138
+ return innerCommon.storeMetadataAssets(pkg, pkgCompositeDeps);
139
+ })
140
+
141
+
136
142
  // PUBLISH PACKAGE
137
143
  .then(() => {
138
144
  return utils.publish.publish(pkg);
@@ -107,8 +107,10 @@ const commitAndPush = (branch, message, folder) => {
107
107
 
108
108
  try {
109
109
  tools.logInfo('Commit and push - second try - retrying pull push');
110
- execa.sync('git', ['pull', 'origin', branch], { cwd: folder });
111
- execa.sync('git', ['push', 'origin', branch], { cwd: folder });
110
+ // setTimeout(() => {
111
+ execa.sync('git', ['pull', 'origin', branch], { cwd: folder });
112
+ execa.sync('git', ['push', 'origin', branch], { cwd: folder });
113
+ // }, 8000);
112
114
 
113
115
  } catch (e3) {
114
116
  throw new Error(`Failed to push ${message} to ${folder}`);
@@ -139,6 +141,11 @@ const tagVersion = (version, branch, message, folder) => {
139
141
  })
140
142
  .catch((e) => {
141
143
  return Promise.resolve()
144
+ // .then(() => {
145
+ // return new Promise((resolve) => {
146
+ // setTimeout(resolve, 8000);
147
+ // });
148
+ // })
142
149
  .then(() => {
143
150
  execa.sync('git', ['tag', '-a', `v${version}b`, '-m', message], { cwd: folder });
144
151
  execa.sync('git', ['push', '--follow-tags', 'origin', branch], { cwd: folder });
@@ -254,6 +261,7 @@ const cloneRepo = (repoUri, folder, forced = false, noHistory = false, externalR
254
261
  return tools.rimraf(folder);
255
262
  }
256
263
  })
264
+
257
265
  .then(() => {
258
266
  if (!tools.isDirExists(folder)) {
259
267
  tools.logInfo(`Cloning ${repoUri} in folder "${folder}" ...`);
@@ -269,6 +277,7 @@ const cloneRepo = (repoUri, folder, forced = false, noHistory = false, externalR
269
277
  tools.logSuccess();
270
278
  }
271
279
  })
280
+
272
281
  .then(() => {
273
282
  tools.logInfo(`Pulling ${repoUri} in folder "${folder}" ...`);
274
283
  execa.shellSync(`git pull`, { cwd: folder, stdio: 'inherit' });