@eui/tools 6.21.122 → 6.21.123
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/sandbox.js +14 -9
- package/scripts/utils/tools.js +7 -24
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.123
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.123 (2025-09-10)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* put back colorize of console log output - EUI-10199 [EUI-10199](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10199) ([e6162a71](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e6162a71593344283922e46bda67450c2b0d4550))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.122 (2025-09-09)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -23,7 +23,12 @@ const apiUtils = require('./scripts/utils/api-utils');
|
|
|
23
23
|
const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
24
24
|
const publishUtils = require('./scripts/utils/publish/publish-utils');
|
|
25
25
|
|
|
26
|
-
tools.
|
|
26
|
+
tools.logInfo('test info');
|
|
27
|
+
tools.logSuccess('test success');
|
|
28
|
+
tools.logWarning('test warning');
|
|
29
|
+
tools.logError('test error');
|
|
30
|
+
tools.logBigTitle('test big title');
|
|
31
|
+
tools.logTitle('test title');
|
|
27
32
|
|
|
28
33
|
// console.log(configUtils.packages.getPackages());
|
|
29
34
|
// console.log(configUtils.packages.getPackage('eui-tools'));
|
|
@@ -1525,12 +1530,12 @@ tools.logSuccess('yellow', 'test');
|
|
|
1525
1530
|
// })
|
|
1526
1531
|
|
|
1527
1532
|
|
|
1528
|
-
Promise.resolve()
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
+
// Promise.resolve()
|
|
1534
|
+
// .then(() => {
|
|
1535
|
+
// const pkg = configUtils.packages.getPackage('cinea-ifksds-ui');
|
|
1536
|
+
// return metadataUtils.packageUtils.isNewPackageBuild(pkg);
|
|
1537
|
+
// })
|
|
1533
1538
|
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1539
|
+
// .then((output) => {
|
|
1540
|
+
// console.log(output);
|
|
1541
|
+
// })
|
package/scripts/utils/tools.js
CHANGED
|
@@ -8,7 +8,6 @@ const glob = require('glob');
|
|
|
8
8
|
const childProcess = require("child_process");
|
|
9
9
|
const execSync = childProcess.execSync;
|
|
10
10
|
const semver = require('semver');
|
|
11
|
-
// const chalk = require('chalk');
|
|
12
11
|
const figlet = require('figlet');
|
|
13
12
|
const figures = require('figures');
|
|
14
13
|
const spawn = require('cross-spawn');
|
|
@@ -678,11 +677,7 @@ function isSysConfigValid() {
|
|
|
678
677
|
|
|
679
678
|
function logBigTitle(text) {
|
|
680
679
|
console.log('\n\n');
|
|
681
|
-
console.log(
|
|
682
|
-
// util.styleText('yellow',
|
|
683
|
-
figlet.textSync(text, { horizontalLayout: 'full' })
|
|
684
|
-
// )
|
|
685
|
-
);
|
|
680
|
+
console.log('\x1b[33m', figlet.textSync(text, { horizontalLayout: 'full' }) ,'\x1b[0m');
|
|
686
681
|
console.log('\n');
|
|
687
682
|
}
|
|
688
683
|
|
|
@@ -744,39 +739,27 @@ const log = (msg, type) => {
|
|
|
744
739
|
if (type === 0 || !type) {
|
|
745
740
|
prefix = figures.play;
|
|
746
741
|
msgContent = `\n${currentDateTime} - ${prefix} ${msg.toUpperCase()}`;
|
|
747
|
-
if (!isTestRunning) console.info(
|
|
748
|
-
// util.styleText('yellow',
|
|
749
|
-
msgContent)
|
|
750
|
-
// );
|
|
742
|
+
if (!isTestRunning) console.info('\x1b[33m', msgContent ,'\x1b[0m');
|
|
751
743
|
}
|
|
752
744
|
if (type === 1) {
|
|
753
745
|
prefix = figures.pointer.repeat(3);
|
|
754
746
|
msgContent = `${currentDateTime} - ${prefix} ${msg}`;
|
|
755
|
-
if (!isTestRunning) console.info(
|
|
756
|
-
// util.styleText('cyan',
|
|
757
|
-
msgContent)
|
|
758
|
-
// );
|
|
747
|
+
if (!isTestRunning) console.info('\x1b[34m\x1b[1m', msgContent ,'\x1b[0m');
|
|
759
748
|
}
|
|
760
749
|
if (type === 2) {
|
|
761
750
|
prefix = figures.pointer.repeat(6);
|
|
762
751
|
msgContent = `${currentDateTime} - ${prefix} ${msg}\n`;
|
|
763
|
-
if (!isTestRunning) console.info(
|
|
764
|
-
// util.styleText('green',
|
|
765
|
-
msgContent)
|
|
766
|
-
// );
|
|
752
|
+
if (!isTestRunning) console.info('\x1b[32m\x1b[1m', msgContent ,'\x1b[0m');
|
|
767
753
|
}
|
|
768
754
|
if (type === 3) {
|
|
769
755
|
prefix = figures.pointer.repeat(6);
|
|
770
|
-
msgContent =
|
|
771
|
-
console.info(
|
|
772
|
-
// util.styleText('red',
|
|
773
|
-
msgContent)
|
|
774
|
-
// );
|
|
756
|
+
msgContent = `\n${currentDateTime} - ${prefix} ${msg}`;
|
|
757
|
+
console.info('\x1b[31m\x1b[1m', msgContent ,'\x1b[0m');
|
|
775
758
|
}
|
|
776
759
|
if (type === 4) {
|
|
777
760
|
prefix = figures.pointer.repeat(6);
|
|
778
761
|
msgContent = `\n${currentDateTime} - ${prefix} ${msg}\n`;
|
|
779
|
-
console.info(msgContent);
|
|
762
|
+
console.info('\x1b[33m', msgContent ,'\x1b[0m');
|
|
780
763
|
}
|
|
781
764
|
if (type === 5) {
|
|
782
765
|
prefix = figures.star.repeat(3);
|