@eui/tools 6.21.99 → 6.21.101
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 +20 -0
- package/package.json +1 -1
- package/scripts/csdr/release/package/release-ui.js +4 -0
- package/scripts/utils/migrate/migrate-utils.js +23 -8
- /package/scripts/utils/migrate/skeleton/{19.x → package}/.euirc-config.json +0 -0
- /package/scripts/utils/migrate/skeleton/{19.x → package}/.gitignore_TO_REPLACE +0 -0
- /package/scripts/utils/migrate/skeleton/{19.x → package}/.gitlab-ci.yml +0 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.101
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 6.21.101 (2025-07-11)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted migration script - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([0ff39a5a](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0ff39a5a161906c17c91d7321c9ec8b536326810))
|
|
7
|
+
* adapted to subgroup parameter usage for sedia packages ([bdb08208](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/bdb082085a77ef87c183d4df29ea06fb2f19aad8))
|
|
8
|
+
|
|
9
|
+
* * *
|
|
10
|
+
* * *
|
|
11
|
+
## 6.21.100 (2025-07-09)
|
|
12
|
+
|
|
13
|
+
##### Chores
|
|
14
|
+
|
|
15
|
+
* **other:**
|
|
16
|
+
* adapted migration to handle v18 remote with v19 - MWP-11955" [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([2b71c0b1](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/2b71c0b18b20653bf3d9635533305bb34cd49392))
|
|
17
|
+
* adapted migration to handle v18 remote with v19 ([3cb23964](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3cb23964c5cff7e05a81be20c2167b4820e0c417))
|
|
18
|
+
|
|
19
|
+
* * *
|
|
20
|
+
* * *
|
|
1
21
|
## 6.21.99 (2025-07-08)
|
|
2
22
|
|
|
3
23
|
##### Chores
|
package/package.json
CHANGED
|
@@ -25,6 +25,10 @@ module.exports.run = () => {
|
|
|
25
25
|
// fetching package from config based on default arg
|
|
26
26
|
const pkg = configUtils.packages.getPackage();
|
|
27
27
|
|
|
28
|
+
if (pkg.sdlc) {
|
|
29
|
+
throw new Error('SDLC migrated package, skipping release');
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
// checking if the package can be retrieved from args
|
|
29
33
|
if (!pkg.name) {
|
|
30
34
|
utils.tools.logError('ERROR : "package" NOT PROVIDED as argument !!!');
|
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const tools = require('../tools');
|
|
5
5
|
|
|
6
|
+
let { subgroup } = tools.getArgs();
|
|
7
|
+
|
|
8
|
+
|
|
6
9
|
module.exports.migrate = (pkg) => {
|
|
7
10
|
return Promise.resolve()
|
|
8
11
|
.then(() => {
|
|
9
|
-
|
|
12
|
+
|
|
13
|
+
if (!subgroup) {
|
|
14
|
+
subgroup = 'myworkplace-ui';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
tools.logTitle(`Migrating package ${pkg.name} for subgroup ${subgroup}`);
|
|
10
18
|
|
|
11
19
|
console.log(pkg);
|
|
12
20
|
|
|
@@ -15,7 +23,7 @@ module.exports.migrate = (pkg) => {
|
|
|
15
23
|
let pkgDef = {
|
|
16
24
|
"name": pkg.name,
|
|
17
25
|
"npmPkg": pkg.npmPkg,
|
|
18
|
-
"repository":
|
|
26
|
+
"repository": `${subgroup}/${pkg.name}.git`,
|
|
19
27
|
"sdlc": true
|
|
20
28
|
};
|
|
21
29
|
console.log(pkgDef);
|
|
@@ -32,7 +40,7 @@ module.exports.migrate = (pkg) => {
|
|
|
32
40
|
|
|
33
41
|
pkgDef = {
|
|
34
42
|
"npmPkg": pkg.npmPkg,
|
|
35
|
-
"subgroup":
|
|
43
|
+
"subgroup": subgroup
|
|
36
44
|
};
|
|
37
45
|
console.log(pkgDef);
|
|
38
46
|
|
|
@@ -47,13 +55,12 @@ module.exports.migrate = (pkg) => {
|
|
|
47
55
|
|
|
48
56
|
tools.logInfo('Adapting files for SDLC repository');
|
|
49
57
|
|
|
50
|
-
tools.copydirFiles(path.join(__dirname, 'skeleton', '
|
|
58
|
+
tools.copydirFiles(path.join(__dirname, 'skeleton', 'package'), pkg.paths.root);
|
|
51
59
|
|
|
52
60
|
tools.move(path.join(pkg.paths.root, '.gitignore_TO_REPLACE'), path.join(pkg.paths.root, '.gitignore'));
|
|
53
61
|
|
|
54
62
|
|
|
55
63
|
|
|
56
|
-
|
|
57
64
|
// REMOTE CREATION
|
|
58
65
|
|
|
59
66
|
const remotesTriggerPath = path.join(process.cwd(), 'remotes-trigger');
|
|
@@ -66,8 +73,15 @@ module.exports.migrate = (pkg) => {
|
|
|
66
73
|
|
|
67
74
|
const remotePrefix = `${pkg.npmPkg.split('/')[0].substr(1)}-${pkg.npmPkg.split('/')[1]}`;
|
|
68
75
|
|
|
69
|
-
|
|
70
|
-
const
|
|
76
|
+
// getting eUI version for package
|
|
77
|
+
const depsJson = require(path.join(pkg.paths.root, 'dependencies-composite.json'));
|
|
78
|
+
const euiVersion = depsJson['@eui/deps-base'].substr(1,2);
|
|
79
|
+
|
|
80
|
+
tools.logInfo(`eUI version found for package : ${euiVersion}`);
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
const currentRemoteName = `${remotePrefix}-eui${euiVersion}-remote-el-ui`;
|
|
84
|
+
const newRemoteName = `${remotePrefix}-remote-eui${euiVersion}`;
|
|
71
85
|
|
|
72
86
|
console.log('Current remote : ', currentRemoteName);
|
|
73
87
|
console.log('New remote : ', newRemoteName);
|
|
@@ -96,7 +110,7 @@ module.exports.migrate = (pkg) => {
|
|
|
96
110
|
|
|
97
111
|
delete currentRemoteConfig['slack'];
|
|
98
112
|
|
|
99
|
-
currentRemoteConfig['npmPkg'] = currentRemoteConfig['npmPkg'].replace(
|
|
113
|
+
currentRemoteConfig['npmPkg'] = currentRemoteConfig['npmPkg'].replace(`eui${euiVersion}-remote-el`, `remote-eui${euiVersion}`);
|
|
100
114
|
|
|
101
115
|
currentRemoteConfig['msteams'] = { "channel": "pipeline-ui-mwp" };
|
|
102
116
|
|
|
@@ -109,6 +123,7 @@ module.exports.migrate = (pkg) => {
|
|
|
109
123
|
|
|
110
124
|
|
|
111
125
|
|
|
126
|
+
|
|
112
127
|
tools.logInfo('Initializing remote trigger repository');
|
|
113
128
|
|
|
114
129
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|