@eui/tools 5.1.2 → 5.1.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 +1 -1
- package/CHANGELOG.md +27 -0
- package/package.json +1 -1
- package/sandbox.js +23 -7
- package/scripts/csdr/install/composite-core.js +7 -1
- package/scripts/csdr/install/projects.js +1 -1
- package/scripts/csdr/metadata/app-versions.js +1 -1
- package/scripts/csdr/version/package-default.js +31 -20
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.1.
|
|
1
|
+
5.1.5
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 5.1.5 (2022-04-28)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* old remote delivery issues on version upgrade - adapted metadata version for app delivery - EUI-5632 [EUI-5632](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5632) ([0499f9f0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0499f9f0ba9b4df56c39773922a3f721476e9a82))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.1.4 (2022-04-28)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* ensure backward compatibility for alternate dep composite declaration outside of MWP - EUI-5632 [EUI-5632](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5632) ([523c2fb2](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/523c2fb23b41594d53e87d7747889889a6c5a3b4))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.1.3 (2022-04-28)
|
|
20
|
+
|
|
21
|
+
##### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* wrong function call - EUI-5632 [EUI-5632](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5632) ([2eb3bddd](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/2eb3bdddf2de7c0f44b936ce8cb443fcb9817e5e))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 5.1.2 (2022-04-28)
|
|
2
29
|
|
|
3
30
|
##### Bug Fixes
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -813,14 +813,30 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
|
813
813
|
|
|
814
814
|
|
|
815
815
|
|
|
816
|
-
const pkg = configUtils.packages.getPackage('mywp-dummy-eui10-remote-el-ui');
|
|
816
|
+
// const pkg = configUtils.packages.getPackage('mywp-dummy-eui10-remote-el-ui');
|
|
817
|
+
|
|
818
|
+
// Promise.resolve()
|
|
819
|
+
// .then(() => {
|
|
820
|
+
// return metadataUtils.packageHistory.generateDiffReport(pkg);
|
|
821
|
+
// })
|
|
822
|
+
// .then((metadata) => {
|
|
823
|
+
// console.log(metadata);
|
|
824
|
+
// })
|
|
817
825
|
|
|
818
826
|
Promise.resolve()
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
.
|
|
823
|
-
|
|
824
|
-
|
|
827
|
+
// getting root composite - dependencies-composite.json content
|
|
828
|
+
.then(() => {
|
|
829
|
+
const compositeJsonFile = path.join(process.cwd(), 'apps/eui-showcase-dev-guide', 'dependencies-composite.json');
|
|
830
|
+
var compositeDeps = tools.getJsonFileContent(compositeJsonFile) || {};
|
|
831
|
+
|
|
832
|
+
if (compositeDeps.dependencies) {
|
|
833
|
+
return compositeDeps.dependencies;
|
|
834
|
+
} else {
|
|
835
|
+
return compositeDeps;
|
|
836
|
+
}
|
|
837
|
+
})
|
|
838
|
+
.then((deps) => {
|
|
839
|
+
console.log(deps);
|
|
840
|
+
})
|
|
825
841
|
|
|
826
842
|
|
|
@@ -138,7 +138,13 @@ module.exports.getCompositeDeps = (
|
|
|
138
138
|
// getting root composite - dependencies-composite.json content
|
|
139
139
|
.then(() => {
|
|
140
140
|
const compositeJsonFile = path.join(process.cwd(), compositePath, 'dependencies-composite.json');
|
|
141
|
-
|
|
141
|
+
var compositeDeps = tools.getJsonFileContent(compositeJsonFile) || {};
|
|
142
|
+
|
|
143
|
+
if (compositeDeps.dependencies) {
|
|
144
|
+
return compositeDeps.dependencies;
|
|
145
|
+
} else {
|
|
146
|
+
return compositeDeps;
|
|
147
|
+
}
|
|
142
148
|
})
|
|
143
149
|
|
|
144
150
|
// getting env specific composite with compositeType if provided
|
|
@@ -24,7 +24,7 @@ const getDeps = module.exports.getDeps = (prj, envTarget, compositeType) => {
|
|
|
24
24
|
return metadataUtils.appEnvs.getMetadata(prj);
|
|
25
25
|
})
|
|
26
26
|
.then((envsMetadata) => {
|
|
27
|
-
return innerCompositeCore.
|
|
27
|
+
return innerCompositeCore.getCompositeDeps(
|
|
28
28
|
prj.folder,
|
|
29
29
|
envTarget,
|
|
30
30
|
compositeType,
|
|
@@ -98,36 +98,47 @@ module.exports.getNewVersion = (
|
|
|
98
98
|
|
|
99
99
|
tools.logInfo(`Current version found : ${currentVersion}`);
|
|
100
100
|
|
|
101
|
-
const release = getReleaseType(commits);
|
|
102
|
-
tools.logInfo('release info found : ' + JSON.stringify(release));
|
|
103
|
-
|
|
104
101
|
let newVersion = '1.0.0';
|
|
105
102
|
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
if (commits) {
|
|
104
|
+
const release = getReleaseType(commits);
|
|
105
|
+
tools.logInfo('release info found : ' + JSON.stringify(release));
|
|
106
|
+
|
|
107
|
+
if (isNextBranch) {
|
|
108
|
+
newVersion = semver.inc(currentVersion, 'prerelease');
|
|
109
|
+
} else {
|
|
110
|
+
newVersion = semver.valid(release.releaseType) || semver.inc(currentVersion, release.releaseType)
|
|
111
|
+
}
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
tools.logInfo('probable new version : ' + newVersion);
|
|
113
114
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
if (isSnapshot) {
|
|
116
|
+
if (pkg.backend) {
|
|
117
|
+
if (pkg.build && pkg.build.nodejs) {
|
|
118
|
+
newVersion += '-snapshot-' + Date.now();
|
|
119
|
+
} else {
|
|
120
|
+
newVersion += '-SNAPSHOT';
|
|
121
|
+
}
|
|
118
122
|
} else {
|
|
119
|
-
newVersion += '-
|
|
123
|
+
newVersion += '-snapshot-' + Date.now();
|
|
120
124
|
}
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
|
|
126
|
+
} else if (isSupportBranch) {
|
|
127
|
+
if (pkg.backend) {
|
|
128
|
+
newVersion = semver.inc(currentVersion, 'prerelease');
|
|
129
|
+
}
|
|
130
|
+
} else if (isHotfixBranch) {
|
|
131
|
+
newVersion = semver.inc(currentVersion, 'prerelease');
|
|
123
132
|
}
|
|
124
133
|
|
|
125
|
-
} else
|
|
126
|
-
|
|
134
|
+
} else {
|
|
135
|
+
tools.logInfo('No commits found for version processing...applying minor version upgrade');
|
|
136
|
+
|
|
137
|
+
if (isNextBranch) {
|
|
127
138
|
newVersion = semver.inc(currentVersion, 'prerelease');
|
|
139
|
+
} else {
|
|
140
|
+
newVersion = semver.inc(currentVersion, 'minor');
|
|
128
141
|
}
|
|
129
|
-
} else if (isHotfixBranch) {
|
|
130
|
-
newVersion = semver.inc(currentVersion, 'prerelease');
|
|
131
142
|
}
|
|
132
143
|
|
|
133
144
|
tools.logSuccess('new version generated : ' + newVersion);
|