@eui/tools 4.18.4 → 4.18.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.
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.18.
|
|
1
|
+
4.18.5
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 4.18.5 (2021-12-15)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* 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))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 4.18.4 (2021-12-15)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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 (
|
|
343
|
+
if (isMaster) {
|
|
342
344
|
return utils.git.mergeMasterToDevelop(project, project.folder);
|
|
343
345
|
}
|
|
344
346
|
}
|