@eui/tools 6.2.10 → 6.2.11

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.2.10
1
+ 6.2.11
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.2.11 (2022-11-11)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted init parameters for CI virtual remotes build - MWP-9010 [MWP-9010](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9010) ([b28cf25b](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b28cf25bb9302f6161de724e1110bc216deba5ae))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.2.10 (2022-11-11)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.10",
3
+ "version": "6.2.11",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -17,8 +17,6 @@ module.exports.run = (args) => {
17
17
  return Promise.resolve()
18
18
  .then(() => {
19
19
  tools.logInfo('Updating local configuration')
20
- tools.logInfo('Current configuration: ');
21
- console.log(args);
22
20
 
23
21
  return getInputPackages(args.project, args.pkg, args.team, args.prjOnly, args.containerOnly);
24
22
  })
@@ -39,6 +39,20 @@ module.exports.init = () => {
39
39
  initialResponse.branch = 'develop';
40
40
  }
41
41
 
42
+ // converting inputs
43
+ if (initialResponse.branch && typeof (initialResponse.branch) === 'boolean') {
44
+ initialResponse.branch = 'develop';
45
+ }
46
+ if (initialResponse.remoteBuild && typeof (initialResponse.remoteBuild) === 'boolean') {
47
+ initialResponse.remoteBuild = false;
48
+ }
49
+ if (initialResponse.virtual && typeof (initialResponse.virtual) === 'boolean') {
50
+ initialResponse.virtual = false;
51
+ }
52
+ if (initialResponse.euiVersion && typeof (initialResponse.euiVersion) === 'boolean') {
53
+ initialResponse.euiVersion = null;
54
+ }
55
+
42
56
  // setting project to null if forced to NONE
43
57
  if (initialResponse.project === 'NONE') {
44
58
  initialResponse.project = null;
@@ -53,7 +67,6 @@ module.exports.init = () => {
53
67
  // Storing the response for propagation
54
68
  var finalResponse;
55
69
 
56
-
57
70
  return Promise.resolve()
58
71
  .then(() => {
59
72
 
@@ -70,6 +83,9 @@ module.exports.init = () => {
70
83
  // merge with response found from prompts
71
84
  .then((response) => {
72
85
  finalResponse = { ...initialResponse, ...response };
86
+
87
+ tools.logInfo('Init configuration :');
88
+ console.log(finalResponse);
73
89
  })
74
90
 
75
91
  // Initializing .euirc.json local file - the core of CSDR operations
@@ -92,21 +108,21 @@ module.exports.init = () => {
92
108
 
93
109
  // Initializing .meta based on .euirc.json for local respoisitories cloning
94
110
  .then(() => {
95
- if (!remote) {
111
+ if (!finalResponse.remote) {
96
112
  return initUtils.meta.init();
97
113
  }
98
114
  })
99
115
 
100
116
  // Cloning repositories based on the .meta file generated
101
117
  .then(() => {
102
- if (!skipClone && !remote) {
118
+ if (!skipClone && !finalResponse.remote) {
103
119
  return initUtils.repos.init(finalResponse);
104
120
  }
105
121
  })
106
122
 
107
123
  // Importing packages and generating definitions
108
124
  .then(() => {
109
- if (!remote) {
125
+ if (!finalResponse.remote) {
110
126
  return initUtils.packages.importPackages(finalResponse);
111
127
  }
112
128
  })
@@ -122,7 +138,7 @@ module.exports.init = () => {
122
138
  .then(() => {
123
139
  if (finalResponse.remote) {
124
140
  if (finalResponse.euiVersion) {
125
- return initUtils.remotes.generateVirtualRemote(remote, euiVersion);
141
+ return initUtils.remotes.generateVirtualRemote(finalResponse.remote, finalResponse.euiVersion);
126
142
  } else {
127
143
  throw new Error('When a remote is initialized, an "euiVersion" parameter must be specified');
128
144
  }
@@ -147,9 +163,9 @@ module.exports.init = () => {
147
163
  if (!build && !skipInstall) {
148
164
  if (finalResponse.pkgOnly || finalResponse.remoteOnly) {
149
165
  if (finalResponse.remote) {
150
- return installUtils.localDev.installRemote(remote);
166
+ return installUtils.localDev.installRemote(finalResponse.remote);
151
167
  } else {
152
- return installUtils.localDev.installPackage(pkg);
168
+ return installUtils.localDev.installPackage(finalResponse.pkg);
153
169
  }
154
170
  } else {
155
171
  return installUtils.localDev.install();
@@ -184,7 +200,7 @@ module.exports.init = () => {
184
200
 
185
201
  // Attaching external mock repo for project
186
202
  .then(() => {
187
- if (finalResponse.project && !build && !prjOnly) {
203
+ if (finalResponse.project && !build && !finalResponse.prjOnly) {
188
204
  return initUtils.projects.importExternalMock();
189
205
  }
190
206
  })