@eui/tools 6.21.113 → 6.21.115

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.
@@ -1 +1 @@
1
- 6.21.113
1
+ 6.21.115
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.21.115 (2025-09-05)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted for git sdlc cloning - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([0f2de905](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0f2de9050af3faa26f182478f49e0fa56bd789b0))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.21.114 (2025-09-04)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted for local sdlc init fetch of host related repositories - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([578d74c0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/578d74c0195955fa4ce278ee04a1630431f60e69))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.21.113 (2025-09-02)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.21.113",
3
+ "version": "6.21.115",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -86,7 +86,7 @@ module.exports.cloneHostPackage = (prj) => {
86
86
  throw new Error('Invalid host package provided / unknown to CSDR config');
87
87
  }
88
88
  if (configUtils.global.isCsdr()) {
89
- return gitUtils.cloneAndCheckout(pkg.repository, path.join(process.cwd(), 'packages', pkg.name), 'master');
89
+ return gitUtils.cloneAndCheckout(pkg.repository, path.join(process.cwd(), 'packages', pkg.name), 'master', false, false, true);
90
90
  } else {
91
91
  return gitUtils.cloneRepoStandalone(pkg.name, path.join(process.cwd(), 'packages', pkg.name));
92
92
  }
@@ -78,7 +78,12 @@ const cloneAndCheckout = (repo, args) => {
78
78
  } else {
79
79
  cloneBranch = args.branch;
80
80
  }
81
- return gitUtils.cloneAndCheckout(repo.uri, repo.folder, cloneBranch, false, shallowClone);
81
+
82
+ let sdlc = false;
83
+ if (repo.uri.indexOf('myworkplace-ui/') > -1) {
84
+ sdlc = true;
85
+ }
86
+ return gitUtils.cloneAndCheckout(repo.uri, repo.folder, cloneBranch, false, shallowClone, sdlc);
82
87
  })
83
88
 
84
89
  .catch((e) => {
@@ -247,7 +247,7 @@ const mergeSupportToSupportDevelop = (pkg, folder, supportBranch, supportSnapsho
247
247
 
248
248
 
249
249
 
250
- const getGitHost = (externalRepo) => {
250
+ const getGitHost = (externalRepo, sdlc = false) => {
251
251
  const config = configUtils.global.getConfig();
252
252
 
253
253
  if (config.git) {
@@ -255,7 +255,11 @@ const getGitHost = (externalRepo) => {
255
255
  if (externalRepo) {
256
256
  return config.git.externals.local;
257
257
  } else {
258
- return config.git.local;
258
+ if (sdlc) {
259
+ return config.git.sdlc;
260
+ } else {
261
+ return config.git.local;
262
+ }
259
263
  }
260
264
 
261
265
  } else if (git && git === 'sdlc') {
@@ -315,7 +319,7 @@ const cloneRepoStandalone = (repoName, destinationFolder) => {
315
319
 
316
320
 
317
321
 
318
- const cloneRepo = (repoUri, folder, forced = false, shallow = false, externalRepo = false) => {
322
+ const cloneRepo = (repoUri, folder, forced = false, shallow = false, externalRepo = false, sdlc = false) => {
319
323
  if (!repoUri) {
320
324
  tools.logWarning('Repository not set -- bypassing clone...');
321
325
  return;
@@ -331,10 +335,13 @@ const cloneRepo = (repoUri, folder, forced = false, shallow = false, externalRep
331
335
 
332
336
  .then(() => {
333
337
  if (!tools.isDirExists(folder)) {
334
- tools.logInfo(`Cloning ${repoUri} in folder "${folder}" ...`);
338
+ tools.logInfo(`Cloning ${repoUri} in folder "${folder}" ... / sdlc=${sdlc}`);
335
339
 
336
- const auth = process.env.gituser && process.env.gitpassword ? `${process.env.gituser}:${process.env.gitpassword}@` : '';
337
- const gitHost = getGitHost(externalRepo);
340
+ let auth = process.env.gituser && process.env.gitpassword ? `${process.env.gituser}:${process.env.gitpassword}@` : '';
341
+ if (sdlc) {
342
+ auth = process.env.gituser_sdlc && process.env.gitpassword_sdlc ? `${process.env.gituser_sdlc}:${process.env.gitpassword_sdlc}@` : '';
343
+ }
344
+ const gitHost = getGitHost(externalRepo, sdlc);
338
345
 
339
346
  if (shallow) {
340
347
  execa.shellSync(`git clone --depth 1 https://${auth}${gitHost}${repoUri} ${folder}`);
@@ -399,7 +406,7 @@ const checkout = (branch, folder, shallow = false) => {
399
406
  }
400
407
 
401
408
 
402
- const cloneAndCheckout = (repoUri, folder, branch, forced, shallow) => {
409
+ const cloneAndCheckout = (repoUri, folder, branch, forced = false, shallow = false, sdlc = false) => {
403
410
  if (!repoUri) {
404
411
  tools.logWarning('Repository set to false -- clone deactivated');
405
412
  return;
@@ -409,7 +416,7 @@ const cloneAndCheckout = (repoUri, folder, branch, forced, shallow) => {
409
416
 
410
417
  return Promise.resolve()
411
418
  .then(() => {
412
- return cloneRepo(repoUri, folder, forced, shallow);
419
+ return cloneRepo(repoUri, folder, forced, shallow, false, sdlc);
413
420
  })
414
421
 
415
422
  .then(() => {
@@ -3,7 +3,7 @@
3
3
  const path = require('path');
4
4
  const tools = require('../tools');
5
5
 
6
- let { subgroup, remoteNpmPkg } = tools.getArgs();
6
+ let { subgroup, remoteNpmPkg, remoteName } = tools.getArgs();
7
7
 
8
8
 
9
9
  module.exports.migrate = (pkg) => {
@@ -78,6 +78,12 @@ module.exports.migrate = (pkg) => {
78
78
  remotePrefix = `${remoteNpmPkg.split('/')[0].substr(1)}-${remoteNpmPkg.split('/')[1]}`;
79
79
  }
80
80
 
81
+ if (remoteName) {
82
+ remotePrefix = remoteName;
83
+ }
84
+
85
+ console.log(remotePrefix);
86
+
81
87
  // getting eUI version for package
82
88
  const depsJson = require(path.join(pkg.paths.root, 'dependencies-composite.json'));
83
89
  const euiVersion = depsJson['@eui/deps-base'].substr(1,2);