@eui/tools 4.18.0 → 4.18.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.
- package/.version.properties +1 -1
- package/CHANGELOG.md +36 -0
- package/package.json +1 -1
- package/sandbox.js +2 -2
- package/scripts/csdr/install/common.js +4 -0
- package/scripts/csdr/install/composite-utils.js +24 -11
- package/scripts/csdr/metadata/package-history.js +1 -1
- package/scripts/csdr/release/package/common.js +5 -5
- package/scripts/utils/build/package/styles.js +1 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.18.
|
|
1
|
+
4.18.4
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## 4.18.4 (2021-12-15)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* fix dependencies resolution for support snapshot - enabled prevSnapshot deps fetch from metadata option - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([1e270e30](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/1e270e305eacca555fce441366de86a9dc2fa722))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 4.18.3 (2021-12-15)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* added support/develop flow for snapshot on support branches - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([d40e9718](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d40e9718a0ba194f7a2ce746032b0ffdce6dd106))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 4.18.2 (2021-12-13)
|
|
20
|
+
|
|
21
|
+
##### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **styles:**
|
|
24
|
+
* fixes writeFileSync data argument - EUI-5266 [EUI-5266](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5266) ([e4937147](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e4937147a412481e9d7bd33b5c717e7d5a532bcf))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
28
|
+
## 4.18.1 (2021-12-09)
|
|
29
|
+
|
|
30
|
+
##### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **other:**
|
|
33
|
+
* metadata history extraction when first master build - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([2807a982](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/2807a98230045737f5a710b07e45a75a30ea9443))
|
|
34
|
+
|
|
35
|
+
* * *
|
|
36
|
+
* * *
|
|
1
37
|
## 4.18.0 (2021-12-08)
|
|
2
38
|
|
|
3
39
|
##### New Features
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -633,8 +633,8 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
|
|
|
633
633
|
|
|
634
634
|
return Promise.resolve()
|
|
635
635
|
.then(() => {
|
|
636
|
-
const prjName = '
|
|
636
|
+
const prjName = 'eui-showcase-ux';
|
|
637
637
|
const prj = configUtils.projects.getCsdrProject(prjName);
|
|
638
638
|
|
|
639
|
-
return
|
|
639
|
+
return compositeUtils.getDeps(prj, 'TST');
|
|
640
640
|
})
|
|
@@ -130,6 +130,9 @@ const getRemappedDeps = (pkgDeps, pkgDefaultDeps) => {
|
|
|
130
130
|
const getResolvedCarretDeps = (deps) => {
|
|
131
131
|
tools.logTitle('Resolving carret for next version packages');
|
|
132
132
|
|
|
133
|
+
tools.logInfo('processing dependencies : ');
|
|
134
|
+
console.log(deps);
|
|
135
|
+
|
|
133
136
|
return Promise.resolve()
|
|
134
137
|
.then(() => {
|
|
135
138
|
|
|
@@ -148,6 +151,7 @@ const getResolvedCarretDeps = (deps) => {
|
|
|
148
151
|
const lastMajorVersion = metadataUtils.package.getLastMajorVersion(pkg, version.substr(1).split('.')[0]);
|
|
149
152
|
|
|
150
153
|
if (lastMajorVersion) {
|
|
154
|
+
tools.logInfo(`--version found : ${lastMajorVersion}`);
|
|
151
155
|
acc[k] = lastMajorVersion;
|
|
152
156
|
|
|
153
157
|
} else {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const { deepStrictEqual } = require('assert');
|
|
4
|
+
const { toInteger } = require('lodash');
|
|
4
5
|
// global
|
|
5
6
|
const path = require('path');
|
|
6
7
|
|
|
@@ -60,10 +61,10 @@ const getPackagesDepsByEnv = (prj, envTarget, compositeType) => {
|
|
|
60
61
|
})
|
|
61
62
|
.then((prjDeps) => {
|
|
62
63
|
if (envTarget === 'DEV') {
|
|
63
|
-
return getDeps_DEV(prjDeps);
|
|
64
|
+
return getDeps_DEV(prj, prjDeps);
|
|
64
65
|
}
|
|
65
66
|
if (envTarget === 'TST') {
|
|
66
|
-
return getDeps_TST(prjDeps);
|
|
67
|
+
return getDeps_TST(prj, prjDeps);
|
|
67
68
|
}
|
|
68
69
|
if (envTarget === 'INT') {
|
|
69
70
|
return getDeps_INT(prj, compositeType);
|
|
@@ -91,10 +92,16 @@ const getPackagesDepsByEnv = (prj, envTarget, compositeType) => {
|
|
|
91
92
|
* For DEV target, we take the outermost known versions of the packages,
|
|
92
93
|
* including : SNAPSHOTS & LATEST
|
|
93
94
|
*/
|
|
94
|
-
const getDeps_DEV = (prjDeps) => {
|
|
95
|
+
const getDeps_DEV = (prj, prjDeps) => {
|
|
95
96
|
return Promise.resolve()
|
|
96
97
|
.then(() => {
|
|
97
|
-
|
|
98
|
+
if (prj.build && prj.build.prevSnapshotEnabled) {
|
|
99
|
+
tools.logInfo('project has prevSnapshot enabled, getting deps list from prevSnapshotsTag');
|
|
100
|
+
return metadataUtils.package.getPackagesDeps('packagesPrevSnapshotsTag');
|
|
101
|
+
} else {
|
|
102
|
+
tools.logInfo('getting project deps from snapshots metadata list');
|
|
103
|
+
return metadataUtils.package.getPackagesDeps('packages');
|
|
104
|
+
}
|
|
98
105
|
})
|
|
99
106
|
|
|
100
107
|
// Re-mapping the dependencies found against their max "carret" versions found in the base dependencies defs in the project
|
|
@@ -105,18 +112,24 @@ const getDeps_DEV = (prjDeps) => {
|
|
|
105
112
|
.catch((e) => {
|
|
106
113
|
throw e;
|
|
107
114
|
})
|
|
108
|
-
}
|
|
115
|
+
}
|
|
109
116
|
|
|
110
117
|
|
|
111
|
-
/**
|
|
112
|
-
|
|
113
|
-
|
|
118
|
+
/**
|
|
119
|
+
* For TST target, we take only the LATEST know versions of the packages,
|
|
120
|
+
* including : LATEST
|
|
114
121
|
*/
|
|
115
|
-
const getDeps_TST = (prjDeps) => {
|
|
122
|
+
const getDeps_TST = (prj, prjDeps) => {
|
|
116
123
|
return Promise.resolve()
|
|
117
|
-
|
|
124
|
+
.then(() => {
|
|
125
|
+
if (prj.build && prj.build.prevSnapshotEnabled) {
|
|
126
|
+
tools.logInfo('project has prevSnapshot enabled, getting deps list from prevTag');
|
|
127
|
+
return metadataUtils.package.getPackagesDeps('packagesPrevTag');
|
|
128
|
+
} else {
|
|
129
|
+
tools.logInfo('getting project deps from packagesLatest metadata list');
|
|
118
130
|
return metadataUtils.package.getPackagesDeps('packagesLatestTag');
|
|
119
|
-
}
|
|
131
|
+
}
|
|
132
|
+
})
|
|
120
133
|
|
|
121
134
|
// Re-mapping the dependencies found against their max "carret" versions found in the base dependencies defs in the project
|
|
122
135
|
.then((pkgDeps) => {
|
|
@@ -128,7 +128,7 @@ const getDiffBetweenBuildVersions = (pkg, fromBuildMetadata, toBuildMetadata) =>
|
|
|
128
128
|
|
|
129
129
|
if (!fromBuildMetadata) {
|
|
130
130
|
tools.logWarning('No previous metadata found for package...skipping');
|
|
131
|
-
return
|
|
131
|
+
return null;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
return Promise.resolve()
|
|
@@ -19,9 +19,9 @@ module.exports.getBranches = () => {
|
|
|
19
19
|
|
|
20
20
|
const isSnapshot = (branch === 'develop');
|
|
21
21
|
const isMaster = (branch === 'master');
|
|
22
|
-
const
|
|
22
|
+
const isSupportSnapshot = (!isMaster && !isSnapshot && branch.indexOf('support/develop') > -1);
|
|
23
|
+
const isSupport = (!isMaster && !isSnapshot && !isSupportSnapshot && branch.indexOf('support/') > -1);
|
|
23
24
|
const isNext = (!isMaster && !isSnapshot && !isSupport && branch.indexOf('next/') > -1);
|
|
24
|
-
const isSupportSnapshot = (!isMaster && !isSnapshot && !isSupport && !isNext);
|
|
25
25
|
|
|
26
26
|
return {
|
|
27
27
|
isSupport: isSupport,
|
|
@@ -178,7 +178,7 @@ module.exports.updateVersion = (pkg, pkgMetadata) => {
|
|
|
178
178
|
|
|
179
179
|
// GET NEW VERSION from VALID commits found in metadata
|
|
180
180
|
.then(() => {
|
|
181
|
-
return versionUtils.package.getNewVersion(pkg, pkgMetadata.commits, branches.isSnapshot, branches.isNext, branches.isSupport);
|
|
181
|
+
return versionUtils.package.getNewVersion(pkg, pkgMetadata.commits, (branches.isSnapshot || branches.isSupportSnapshot), branches.isNext, branches.isSupport);
|
|
182
182
|
})
|
|
183
183
|
|
|
184
184
|
|
|
@@ -187,7 +187,7 @@ module.exports.updateVersion = (pkg, pkgMetadata) => {
|
|
|
187
187
|
newVersion = version;
|
|
188
188
|
|
|
189
189
|
if (!dryRun) {
|
|
190
|
-
return versionUtils.package.updateVersion(pkg, version, branches.isSnapshot, branches.isNext, branches.isSupport);
|
|
190
|
+
return versionUtils.package.updateVersion(pkg, version, (branches.isSnapshot || branches.isSupportSnapshot), branches.isNext, branches.isSupport);
|
|
191
191
|
}
|
|
192
192
|
})
|
|
193
193
|
|
|
@@ -288,7 +288,7 @@ module.exports.runGitOperations = (pkg, version) => {
|
|
|
288
288
|
|
|
289
289
|
// TAG THE NEW RELEASE (MASTER) for MASTER and SUPPORT
|
|
290
290
|
.then(() => {
|
|
291
|
-
if (!branches.isSnapshot) {
|
|
291
|
+
if (!branches.isSnapshot && !branches.isSupportSnapshot) {
|
|
292
292
|
return utils.git.tagVersion(
|
|
293
293
|
version, branches.branch,
|
|
294
294
|
`chore(release): tagging ${version} - from CI server`,
|
|
@@ -141,7 +141,7 @@ const compileSassFileDartSass = (folder, filename) => {
|
|
|
141
141
|
fs.writeFileSync(finalDest, postcssResult.css);
|
|
142
142
|
|
|
143
143
|
if (postcssResult.map) {
|
|
144
|
-
fs.writeFileSync(`${finalDest}.map`, postcssResult.map);
|
|
144
|
+
fs.writeFileSync(`${finalDest}.map`, postcssResult.map.toString());
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
})
|