@eui/tools 6.20.13 → 6.20.15

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.20.13
1
+ 6.20.15
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.20.15 (2024-08-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * remote standalone install registry fetch - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([f40b38eb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/f40b38eb0be62d724d5f68eb071615741449cc03))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.20.14 (2024-08-09)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * re-enable full remote standalone pipeline - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([5b7ea883](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5b7ea883d53be6d514f9335a8734eb13a04d7d26))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.20.13 (2024-08-09)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.20.13",
3
+ "version": "6.20.15",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -116,7 +116,12 @@ const pkgInstall = (pkg, envTarget) => {
116
116
  tools.logInfo('installing dependencies');
117
117
  console.log(pkgJson.dependencies);
118
118
 
119
- return innerCommon.executeInstall(pkg.paths.root);
119
+ if (pkg.standalone) {
120
+ return innerCommon.executeInstall(pkg.paths.root, configUtils.global.getConfigOptionsStandalone().NPM_REGISTRY_INSTALL);
121
+ } else {
122
+ return innerCommon.executeInstall(pkg.paths.root);
123
+ }
124
+
120
125
 
121
126
  } else {
122
127
  tools.logWarning('No dependencies found to install');
@@ -75,123 +75,123 @@ module.exports.run = () => {
75
75
  return metadataUtils.common.cloneMetadataRepoStandalone();
76
76
  })
77
77
 
78
- // // INSTALL dependencies by type
79
- // .then(() => {
80
- // return installUtils.buildPackage.installRemote(pkg, envTarget);
81
- // })
82
- // .then((compositeDeps) => {
83
- // // storing for later use
84
- // pkgCompositeDeps = compositeDeps;
85
- // })
78
+ // INSTALL dependencies by type
79
+ .then(() => {
80
+ return installUtils.buildPackage.installRemote(pkg, envTarget);
81
+ })
82
+ .then((compositeDeps) => {
83
+ // storing for later use
84
+ pkgCompositeDeps = compositeDeps;
85
+ })
86
86
 
87
- // // BUILD THE REMOTE
88
- // .then(() => {
89
- // return utils.buildPackage.build(pkg, true);
90
- // })
87
+ // BUILD THE REMOTE
88
+ .then(() => {
89
+ return utils.buildPackage.build(pkg, true);
90
+ })
91
91
 
92
- // // UPDATE VERSION
93
- // .then(() => {
94
- // return innerCommon.updateVersion(pkg, null, envTarget);
95
- // })
96
- // .then((version) => {
97
- // // storing version for later use
98
- // newVersion = version;
99
- // })
92
+ // UPDATE VERSION
93
+ .then(() => {
94
+ return innerCommon.updateVersion(pkg, null, envTarget);
95
+ })
96
+ .then((version) => {
97
+ // storing version for later use
98
+ newVersion = version;
99
+ })
100
100
 
101
- // .then(() => {
102
- // return innerCommon.postBuild(pkg, newVersion);
103
- // })
101
+ .then(() => {
102
+ return innerCommon.postBuild(pkg, newVersion);
103
+ })
104
104
 
105
105
 
106
- // // STORING METADATA ASSETS
107
- // .then(() => {
108
- // return innerCommon.storeMetadataAssets(pkg, pkgCompositeDeps);
109
- // })
106
+ // STORING METADATA ASSETS
107
+ .then(() => {
108
+ return innerCommon.storeMetadataAssets(pkg, pkgCompositeDeps);
109
+ })
110
110
 
111
111
 
112
- // // PUBLISH PACKAGE
113
- // .then(() => {
114
- // return utils.publish.publish(pkg);
115
- // })
112
+ // PUBLISH PACKAGE
113
+ .then(() => {
114
+ return utils.publish.publish(pkg);
115
+ })
116
116
 
117
117
 
118
- // // EXECUTING POST PUBLISH SCRIPT IF AVAILABLE
119
- // .then(() => {
120
- // return utils.publish.postPublish(pkg);
121
- // })
118
+ // EXECUTING POST PUBLISH SCRIPT IF AVAILABLE
119
+ .then(() => {
120
+ return utils.publish.postPublish(pkg);
121
+ })
122
122
 
123
123
 
124
- // // STORING CENTRALIZED METADATA
125
- // .then(() => {
126
- // // get run duration
127
- // const duration = utils.pipeline.getTimerDuration();
124
+ // STORING CENTRALIZED METADATA
125
+ .then(() => {
126
+ // get run duration
127
+ const duration = utils.pipeline.getTimerDuration();
128
128
 
129
- // // store envs + versions for virtual remotes
130
- // return metadataUtils.remotePackage.storeMetadata(pkg, newVersion, pkgCompositeDeps, duration, envTarget);
131
- // })
129
+ // store envs + versions for virtual remotes
130
+ return metadataUtils.remotePackage.storeMetadata(pkg, newVersion, pkgCompositeDeps, duration, envTarget);
131
+ })
132
132
 
133
133
 
134
- // // // GENERATE DIFF REPORT
135
- // // .then(() => {
136
- // // let metadata;
137
-
138
- // // if (envTarget !== 'DEV') {
139
- // // return Promise.resolve()
140
- // // .then(() => {
141
- // // return metadataUtils.remoteHistory.generateDiffCommitsMetadataReport(pkg, envTarget);
142
- // // })
143
- // // .then((output) => {
144
- // // metadata = output;
145
- // // })
146
- // // .then(() => {
147
- // // return utils.notification.package.sendPackageDiffReportMessage(
148
- // // pkg,
149
- // // metadata.diffsMetadata
150
- // // );
151
- // // })
152
- // // .then(() => {
153
- // // return metadataUtils.remoteHistory.storeMetadataHistory(pkg, metadata, newVersion);
154
- // // })
155
- // // .then(() => {
156
- // // if (metadata.commitsMetadata && metadata.commitsMetadata.issues) {
157
- // // return metadataUtils.remoteHistory.generatePipelineIssuesList(metadata.commitsMetadata.issues);
158
- // // }
159
- // // })
160
- // // .catch((e) => {
161
- // // utils.tools.logError('Error generating diffs report for current remote processed :');
162
- // // console.log(e);
163
- // // })
164
- // // }
165
- // // })
166
-
167
-
168
- // // COMMITING METADATA
134
+ // // GENERATE DIFF REPORT
169
135
  // .then(() => {
170
- // return innerCommon.commitMetadata(pkg, newVersion);
136
+ // let metadata;
137
+
138
+ // if (envTarget !== 'DEV') {
139
+ // return Promise.resolve()
140
+ // .then(() => {
141
+ // return metadataUtils.remoteHistory.generateDiffCommitsMetadataReport(pkg, envTarget);
142
+ // })
143
+ // .then((output) => {
144
+ // metadata = output;
145
+ // })
146
+ // .then(() => {
147
+ // return utils.notification.package.sendPackageDiffReportMessage(
148
+ // pkg,
149
+ // metadata.diffsMetadata
150
+ // );
151
+ // })
152
+ // .then(() => {
153
+ // return metadataUtils.remoteHistory.storeMetadataHistory(pkg, metadata, newVersion);
154
+ // })
155
+ // .then(() => {
156
+ // if (metadata.commitsMetadata && metadata.commitsMetadata.issues) {
157
+ // return metadataUtils.remoteHistory.generatePipelineIssuesList(metadata.commitsMetadata.issues);
158
+ // }
159
+ // })
160
+ // .catch((e) => {
161
+ // utils.tools.logError('Error generating diffs report for current remote processed :');
162
+ // console.log(e);
163
+ // })
164
+ // }
171
165
  // })
172
166
 
173
167
 
174
- // // EXPORT ADDITIONAL PIPELINE VARIABLES
175
- // .then(() => {
176
- // return innerCommon.exportPipelineVariables(pkg);
177
- // })
168
+ // COMMITING METADATA
169
+ .then(() => {
170
+ return innerCommon.commitMetadata(pkg, newVersion);
171
+ })
178
172
 
179
- // // SEND SUCCESS NOTIFICATION
180
- // .then(() => {
181
- // return innerCommon.sendSuccessNotification(pkg, newVersion)
182
- // .then(() => {
183
- // return innerCommon.close(pkg);
184
- // });
185
- // })
186
173
 
187
- // // SEND ERROR NOTIFICATION
188
- // .catch((e) => {
189
- // return innerCommon.sendErrorNotification(pkg, e)
190
- // .then(() => {
191
- // return innerCommon.close(pkg);
192
- // })
193
- // .then(() => {
194
- // process.exit(1);
195
- // })
196
- // })
174
+ // EXPORT ADDITIONAL PIPELINE VARIABLES
175
+ .then(() => {
176
+ return innerCommon.exportPipelineVariables(pkg);
177
+ })
178
+
179
+ // SEND SUCCESS NOTIFICATION
180
+ .then(() => {
181
+ return innerCommon.sendSuccessNotification(pkg, newVersion)
182
+ .then(() => {
183
+ return innerCommon.close(pkg);
184
+ });
185
+ })
186
+
187
+ // SEND ERROR NOTIFICATION
188
+ .catch((e) => {
189
+ return innerCommon.sendErrorNotification(pkg, e)
190
+ .then(() => {
191
+ return innerCommon.close(pkg);
192
+ })
193
+ .then(() => {
194
+ process.exit(1);
195
+ })
196
+ })
197
197
  }