@eui/tools 4.17.0 → 4.17.4

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.0
1
+ 4.17.4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,43 @@
1
+ ## 4.17.4 (2021-11-24)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * 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))
7
+
8
+ * * *
9
+ * * *
10
+ ## 4.17.3 (2021-11-24)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * update comments for setup on remote v7 ([00b827d7](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/00b827d72f0ce558e6b854ac9ebe9a8a2a9005fc))
16
+ ##### Bug Fixes
17
+
18
+ * **other:**
19
+ * 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))
20
+
21
+ * * *
22
+ * * *
23
+ ## 4.17.2 (2021-11-23)
24
+
25
+ ##### Chores
26
+
27
+ * **other:**
28
+ * 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))
29
+
30
+ * * *
31
+ * * *
32
+ ## 4.17.1 (2021-11-19)
33
+
34
+ ##### Bug Fixes
35
+
36
+ * **other:**
37
+ * missing import for remote release - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([df800d74](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/df800d74dc16c7445c9aceff3d8e76ed052811bd))
38
+
39
+ * * *
40
+ * * *
1
41
  ## 4.17.0 (2021-11-19)
2
42
 
3
43
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.17.0",
3
+ "version": "4.17.4",
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: [
@@ -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);
@@ -2,7 +2,7 @@
2
2
 
3
3
  // GLOBAL
4
4
  const path = require('path');
5
-
5
+ const installUtils = require('../../install/install-utils');
6
6
 
7
7
  module.exports.install = (pkg, isMaster, envTarget) => {
8
8
  var pkgCompositeDeps = {};
@@ -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' });