@eui/tools 6.3.37 → 6.3.39
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 +18 -0
- package/package.json +1 -1
- package/scripts/csdr/init/global.js +9 -0
- package/scripts/csdr/init/repos.js +2 -2
- package/scripts/csdr/init/resources/10.x/resolutions.json +2 -1
- package/scripts/csdr/init/resources/13.x/resolutions.json +2 -1
- package/scripts/csdr/init/resources/14.x/resolutions.json +2 -1
- package/scripts/csdr/init/resources/15.x/resolutions.json +2 -1
- package/scripts/csdr/init/resources/nodejs-10.x/resolutions.json +2 -1
- package/scripts/csdr/metadata/common.js +2 -2
- package/scripts/csdr/sync/sync-utils.js +9 -1
- package/scripts/utils/git-utils.js +21 -6
- package/scripts/utils/pre-build/injection/externals.js +1 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.3.
|
|
1
|
+
6.3.39
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.3.39 (2023-02-20)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* added shalow clone option - force caniuse-lite to all resolutions injection - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([8b43faec](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8b43faec931c30e99f1f0114d21117d333f676c4))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.3.38 (2023-02-19)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* enable alternate registry sync and install - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([a6908dcb](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a6908dcbba464c78162641bd1173df6b69688cbb))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.3.37 (2023-02-17)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -7,6 +7,10 @@ const path = require('path');
|
|
|
7
7
|
const tools = require('../../utils/tools');
|
|
8
8
|
const configUtils = require('../config/config-utils');
|
|
9
9
|
|
|
10
|
+
// ARGS
|
|
11
|
+
const { registry } = tools.getArgs();
|
|
12
|
+
|
|
13
|
+
|
|
10
14
|
|
|
11
15
|
module.exports.processLocalEuiVersions = () => {
|
|
12
16
|
tools.logTitle('Processing injections for local installed eUI versions if needed');
|
|
@@ -52,6 +56,11 @@ module.exports.processLocalEuiVersions = () => {
|
|
|
52
56
|
|
|
53
57
|
tools.logInfo(`Processing yarn.lock replacement for eUI version found : ${euiVersion}`);
|
|
54
58
|
|
|
59
|
+
if (registry) {
|
|
60
|
+
tools.logInfo('Alternate registry found...skipping yarn.lock remplacement');
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
55
64
|
const yResourcesFile = path.join(__dirname, 'resources', euiVersion, 'yarn.lock');
|
|
56
65
|
const yDestFile = path.join(process.cwd(), 'yarn.lock');
|
|
57
66
|
|
|
@@ -5,7 +5,7 @@ const gitUtils = require('../../utils/git-utils');
|
|
|
5
5
|
|
|
6
6
|
const innerMeta = require('./meta');
|
|
7
7
|
|
|
8
|
-
const { skipEuiToolsClone } = tools.getArgs();
|
|
8
|
+
const { skipEuiToolsClone, shallowClone } = tools.getArgs();
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
const getRepos = (project, pkg, prjOnly, pkgOnly) => {
|
|
@@ -71,7 +71,7 @@ const cloneAndCheckout = (repo, args) => {
|
|
|
71
71
|
|
|
72
72
|
return Promise.resolve()
|
|
73
73
|
.then(() => {
|
|
74
|
-
return gitUtils.cloneAndCheckout(repo.uri, repo.folder, args.branch);
|
|
74
|
+
return gitUtils.cloneAndCheckout(repo.uri, repo.folder, args.branch, false, shallowClone);
|
|
75
75
|
})
|
|
76
76
|
|
|
77
77
|
.catch((e) => {
|
|
@@ -12,7 +12,7 @@ const configUtils = require('../config/config-utils');
|
|
|
12
12
|
const { dryRun, skipClone } = tools.getArgs();
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
module.exports.cloneMetadataRepo = (
|
|
15
|
+
module.exports.cloneMetadataRepo = (shallow = false) => {
|
|
16
16
|
const configOptions = configUtils.global.getConfigOptions();
|
|
17
17
|
|
|
18
18
|
tools.logTitle('Cloning devops metadata repo');
|
|
@@ -24,7 +24,7 @@ module.exports.cloneMetadataRepo = (noHistory = false) => {
|
|
|
24
24
|
} else {
|
|
25
25
|
return Promise.resolve()
|
|
26
26
|
.then(() => {
|
|
27
|
-
return gitUtils.cloneRepo(configOptions.DEVOPS_METADATA_REPOSITORY, configOptions.DEVOPS_METADATA_PATH, false,
|
|
27
|
+
return gitUtils.cloneRepo(configOptions.DEVOPS_METADATA_REPOSITORY, configOptions.DEVOPS_METADATA_PATH, false, shallow);
|
|
28
28
|
})
|
|
29
29
|
.catch((e) => {
|
|
30
30
|
throw e;
|
|
@@ -5,10 +5,13 @@ const path = require('path');
|
|
|
5
5
|
|
|
6
6
|
const initUtils = require('../init/init-utils');
|
|
7
7
|
const configUtils = require('../config/config-utils');
|
|
8
|
+
const installUtils = require('../install/install-utils');
|
|
8
9
|
|
|
9
10
|
const tools = require('../../utils/tools');
|
|
10
11
|
|
|
11
|
-
const { skipPull } = tools.getArgs();
|
|
12
|
+
const { skipPull, skipInstall } = tools.getArgs();
|
|
13
|
+
|
|
14
|
+
|
|
12
15
|
|
|
13
16
|
module.exports.sync = () => {
|
|
14
17
|
return Promise.resolve()
|
|
@@ -62,6 +65,11 @@ module.exports.sync = () => {
|
|
|
62
65
|
.then(() => {
|
|
63
66
|
return initUtils.global.processResolutionsForNodeVersion();
|
|
64
67
|
})
|
|
68
|
+
.then(() => {
|
|
69
|
+
if (!skipInstall) {
|
|
70
|
+
return installUtils.localDev.install();
|
|
71
|
+
}
|
|
72
|
+
})
|
|
65
73
|
.catch((e) => {
|
|
66
74
|
throw e;
|
|
67
75
|
})
|
|
@@ -267,7 +267,7 @@ const getGitHost = (externalRepo) => {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
|
|
270
|
-
const cloneRepo = (repoUri, folder, forced = false,
|
|
270
|
+
const cloneRepo = (repoUri, folder, forced = false, shallow = false, externalRepo = false) => {
|
|
271
271
|
return Promise.resolve()
|
|
272
272
|
.then(() => {
|
|
273
273
|
if (tools.isDirExists(folder) && forced) {
|
|
@@ -283,7 +283,7 @@ const cloneRepo = (repoUri, folder, forced = false, noHistory = false, externalR
|
|
|
283
283
|
const auth = process.env.gituser && process.env.gitpassword ? `${process.env.gituser}:${process.env.gitpassword}@` : '';
|
|
284
284
|
const gitHost = getGitHost(externalRepo);
|
|
285
285
|
|
|
286
|
-
if (
|
|
286
|
+
if (shallow) {
|
|
287
287
|
execa.shellSync(`git clone --depth 1 https://${auth}${gitHost}${repoUri} ${folder}`);
|
|
288
288
|
} else {
|
|
289
289
|
execa.shellSync(`git clone https://${auth}${gitHost}${repoUri} ${folder}`);
|
|
@@ -303,10 +303,25 @@ const cloneRepo = (repoUri, folder, forced = false, noHistory = false, externalR
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
|
|
306
|
-
const checkout = (branch, folder) => {
|
|
306
|
+
const checkout = (branch, folder, shallow = false) => {
|
|
307
307
|
tools.logInfo(`Checking out branch ${branch} in folder "${folder}"...`)
|
|
308
308
|
|
|
309
309
|
return Promise.resolve()
|
|
310
|
+
.then(() => {
|
|
311
|
+
if (shallow) {
|
|
312
|
+
tools.logInfo(`As shallow cloning: set ${branch} as remote branch tracking...`)
|
|
313
|
+
return Promise.resolve()
|
|
314
|
+
.then(() => {
|
|
315
|
+
return execa.shell(`git remote set-branches --add origin ${branch}`, { cwd: folder, stdio: 'inherit' });
|
|
316
|
+
})
|
|
317
|
+
.then(() => {
|
|
318
|
+
return execa.shell(`git fetch --depth 1 origin ${branch}`, { cwd: folder, stdio: 'inherit' });
|
|
319
|
+
})
|
|
320
|
+
.catch((e) => {
|
|
321
|
+
throw e;
|
|
322
|
+
})
|
|
323
|
+
}
|
|
324
|
+
})
|
|
310
325
|
.then(() => {
|
|
311
326
|
return execa.shell(`git checkout ${branch}`, { cwd: folder, stdio: 'inherit' })
|
|
312
327
|
.then(() => {
|
|
@@ -324,12 +339,12 @@ const checkout = (branch, folder) => {
|
|
|
324
339
|
}
|
|
325
340
|
|
|
326
341
|
|
|
327
|
-
const cloneAndCheckout = (repoUri, folder, branch) => {
|
|
342
|
+
const cloneAndCheckout = (repoUri, folder, branch, forced, shallow) => {
|
|
328
343
|
tools.logInfo(`cloning ${repoUri} in ${folder} on branch ${branch}`);
|
|
329
344
|
|
|
330
345
|
return Promise.resolve()
|
|
331
346
|
.then(() => {
|
|
332
|
-
return cloneRepo(repoUri, folder);
|
|
347
|
+
return cloneRepo(repoUri, folder, forced, shallow);
|
|
333
348
|
})
|
|
334
349
|
|
|
335
350
|
.then(() => {
|
|
@@ -339,7 +354,7 @@ const cloneAndCheckout = (repoUri, folder, branch) => {
|
|
|
339
354
|
|
|
340
355
|
return Promise.resolve()
|
|
341
356
|
.then(() => {
|
|
342
|
-
return checkout(branch, folder);
|
|
357
|
+
return checkout(branch, folder, shallow);
|
|
343
358
|
})
|
|
344
359
|
.catch((e) => {
|
|
345
360
|
tools.logError(`Branch ${branch} NOT FOUND, retrying on develop`);
|
|
@@ -387,7 +387,7 @@ module.exports.injectExternalMock = (project) => {
|
|
|
387
387
|
tools.logInfo('No external mock setup...skipping')
|
|
388
388
|
|
|
389
389
|
} else {
|
|
390
|
-
return gitUtils.cloneRepo(project.mock.repository, project.mock.folder);
|
|
390
|
+
return gitUtils.cloneRepo(project.mock.repository, project.mock.folder, false, true);
|
|
391
391
|
}
|
|
392
392
|
})
|
|
393
393
|
|