@eui/tools 6.21.92 → 6.21.93
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 +9 -0
- package/package.json +1 -1
- package/scripts/utils/migrate/migrate-utils.js +35 -27
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.93
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.93 (2025-07-04)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted sdlc migration tool - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([55a1ba0f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/55a1ba0fd938492d8e040c4d03a28d13c9e1061f))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.92 (2025-07-04)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -6,50 +6,50 @@ const tools = require('../tools');
|
|
|
6
6
|
module.exports.migrate = (pkg) => {
|
|
7
7
|
return Promise.resolve()
|
|
8
8
|
.then(() => {
|
|
9
|
-
|
|
9
|
+
tools.logTitle(`Migrating package ${pkg.name}`);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
console.log(pkg);
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
tools.logInfo('Replacing .csdr/packages config');
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
let pkgDef = {
|
|
16
|
+
"name": pkg.name,
|
|
17
|
+
"npmPkg": pkg.npmPkg,
|
|
18
|
+
"repository": `myworkplace-ui/${pkg.name}.git`,
|
|
19
|
+
"sdlc": true
|
|
20
|
+
};
|
|
21
|
+
console.log(pkgDef);
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const packagesConfigFile = path.join(process.cwd(), '.csdr', '.euirc-csdr-packages.json');
|
|
24
|
+
const packagesConfig = require(packagesConfigFile);
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
packagesConfig[pkg.name] = pkgDef;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
tools.writeJsonFileSync(packagesConfigFile, packagesConfig);
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
tools.logInfo('Adding entry in the SDLC config');
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
pkgDef = {
|
|
34
|
+
"npmPkg": pkg.npmPkg,
|
|
35
|
+
"subgroup": 'myworkplace-ui'
|
|
36
|
+
};
|
|
37
|
+
console.log(pkgDef);
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
const packazgesSDLCConfigFile = path.join(process.cwd(), '.sdlc-config', '.euirc-packages.json');
|
|
40
|
+
const packagesSDLCConfig = require(packazgesSDLCConfigFile);
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
packagesSDLCConfig[pkg.name] = pkgDef;
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
tools.writeJsonFileSync(packazgesSDLCConfigFile, packagesSDLCConfig);
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
tools.logInfo('Adapting files for SDLC repository');
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
tools.copydirFiles(path.join(__dirname, 'skeleton', '19.x'), pkg.paths.root);
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
tools.move(path.join(pkg.paths.root, '.gitignore_TO_REPLACE'), path.join(pkg.paths.root, '.gitignore'));
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -72,6 +72,14 @@ module.exports.migrate = (pkg) => {
|
|
|
72
72
|
|
|
73
73
|
tools.copydir(currentRemotePath, newRemotePath);
|
|
74
74
|
|
|
75
|
+
const remotesDependenciesConfigFile = path.join(process.cwd(), '.sdlc-config', 'remotes', newRemoteName, 'dependencies.json');
|
|
76
|
+
const remotesDependenciesConfig = require(remotesDependenciesConfigFile);
|
|
77
|
+
|
|
78
|
+
let remotesDependenciesConfigString = JSON.stringify(remotesDependenciesConfig);
|
|
79
|
+
remotesDependenciesConfigString = remotesDependenciesConfigString.replace('"INT"', '"int"').replace('"ACC"', '"acc"').replace('"DLT"', '"dlt"').replace('"TRN"', '"trn"').replace('"PROD"', '"prd"');
|
|
80
|
+
|
|
81
|
+
tools.writeJsonFileSync(remotesDependenciesConfigFile, JSON.parse(remotesDependenciesConfigString));
|
|
82
|
+
|
|
75
83
|
const currentRemoteConfig = require(path.join(process.cwd(), '.csdr', '.euirc-csdr-remotes.json'))[currentRemoteName];
|
|
76
84
|
|
|
77
85
|
const remoteSDLCConfigFile = path.join(process.cwd(), '.sdlc-config', 'remotes', '.euirc-remotes.json');
|