@eui/tools 5.3.76 → 5.3.77
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.77
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 5.3.77 (2022-10-24)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* added check for remote envTarget always on master - added lunr for eUI showcase search indexation - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([24bae11f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/24bae11ff62fa9eb9c8cf0c64fc1f1ccaee35bbe))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 5.3.76 (2022-10-20)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/tools",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.77",
|
|
4
4
|
"tag": "latest",
|
|
5
5
|
"license": "EUPL-1.1",
|
|
6
6
|
"description": "eUI common tools and scripts",
|
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
"chalk": "4.1.2",
|
|
17
17
|
"fs-extra": "9.0.0",
|
|
18
18
|
"replace-in-file": "4.1.3",
|
|
19
|
-
"semver": "7.3.
|
|
19
|
+
"semver": "7.3.8",
|
|
20
20
|
"cross-spawn": "6.0.5",
|
|
21
21
|
"eol": "0.9.1",
|
|
22
22
|
"rimraf": "3.0.2",
|
|
23
23
|
"ncp": "2.0.0",
|
|
24
|
-
"moment": "2.29.
|
|
25
|
-
"moment-timezone": "0.5.
|
|
24
|
+
"moment": "2.29.4",
|
|
25
|
+
"moment-timezone": "0.5.37",
|
|
26
26
|
"npm-run-all": "4.1.5",
|
|
27
27
|
"figures": "3.2.0",
|
|
28
28
|
"xml2js": "0.4.23",
|
|
29
29
|
"https-proxy-agent": "2.2.3",
|
|
30
|
-
"json-server": "0.
|
|
30
|
+
"json-server": "0.17.0",
|
|
31
31
|
"faker": "5.5.3",
|
|
32
|
-
"nodemon": "2.0.
|
|
32
|
+
"nodemon": "2.0.20",
|
|
33
33
|
"lowdb": "1.0.0",
|
|
34
34
|
"event-stream": "3.3.4",
|
|
35
35
|
"empty-module": "0.0.2",
|
|
36
36
|
"autoprefixer": "9.6.1",
|
|
37
|
-
"sass": "1.
|
|
37
|
+
"sass": "1.55.0",
|
|
38
38
|
"postcss": "7.0.36",
|
|
39
39
|
"cssnano": "4.1.11",
|
|
40
40
|
"extend": "3.0.2",
|
|
@@ -43,7 +43,9 @@
|
|
|
43
43
|
"nyc": "15.1.0",
|
|
44
44
|
"node-fetch": "2.6.7",
|
|
45
45
|
"sendmail": "1.6.1",
|
|
46
|
+
"svg-sprite": "2.0.0",
|
|
46
47
|
"imagemin": "7.0.1",
|
|
47
|
-
"imagemin-svgo": "9.0.0"
|
|
48
|
+
"imagemin-svgo": "9.0.0",
|
|
49
|
+
"lunr": "2.3.9"
|
|
48
50
|
}
|
|
49
51
|
}
|
package/sandbox.js
CHANGED
|
@@ -864,16 +864,16 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
|
864
864
|
|
|
865
865
|
|
|
866
866
|
|
|
867
|
-
const pkg = configUtils.packages.getPackage('opsys-epc-esub-bo-ui', true);
|
|
867
|
+
// const pkg = configUtils.packages.getPackage('opsys-epc-esub-bo-ui', true);
|
|
868
868
|
|
|
869
|
-
Promise.resolve()
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
869
|
+
// Promise.resolve()
|
|
870
|
+
// .then(() => {
|
|
871
|
+
// return metadataUtils.package.getPackageVersionsByMajor(pkg, '9', false)
|
|
872
|
+
// })
|
|
873
|
+
// .then((versions) => {
|
|
874
|
+
// console.log(versions);
|
|
875
|
+
// console.log(versions.splice(-1)[0].version);
|
|
876
|
+
// })
|
|
877
877
|
|
|
878
878
|
|
|
879
879
|
// PROJECT VERSION CSDR BUILD TESTING (à la carte way === MWP / PMO MOBILE / SEDIA)
|
|
@@ -913,3 +913,45 @@ Promise.resolve()
|
|
|
913
913
|
// })
|
|
914
914
|
|
|
915
915
|
|
|
916
|
+
// const lunr = require('lunr');
|
|
917
|
+
|
|
918
|
+
// Promise.resolve()
|
|
919
|
+
// .then(() => {
|
|
920
|
+
// const rootPath = path.join(process.cwd(), 'apps', 'eui-showcase-ux-components', 'src', 'assets', 'samples');
|
|
921
|
+
|
|
922
|
+
// let documents = [];
|
|
923
|
+
|
|
924
|
+
// const sampleTypes = tools.getFolders(rootPath);
|
|
925
|
+
// sampleTypes.forEach((sampleType) => {
|
|
926
|
+
// const sampleSubTypes = tools.getFolders(path.join(rootPath, sampleType));
|
|
927
|
+
// sampleSubTypes.forEach((sampleSubType) => {
|
|
928
|
+
// const components = tools.getFolders(path.join(rootPath, sampleType, sampleSubType));
|
|
929
|
+
// components.forEach((cmp) => {
|
|
930
|
+
// const samples = tools.getFolders(path.join(rootPath, sampleType, sampleSubType, cmp, 'samples'));
|
|
931
|
+
// samples.forEach((sample) => {
|
|
932
|
+
// const metadata = {
|
|
933
|
+
// "name": `${sampleType}/${sampleSubType}/${cmp}#${sample}`,
|
|
934
|
+
// "fileContent": tools.getFileContent(path.join(rootPath, sampleType, sampleSubType, cmp, 'samples', sample, 'component.html')),
|
|
935
|
+
// }
|
|
936
|
+
// documents.push(metadata);
|
|
937
|
+
// })
|
|
938
|
+
// });
|
|
939
|
+
// })
|
|
940
|
+
// })
|
|
941
|
+
|
|
942
|
+
// var idx = lunr(function () {
|
|
943
|
+
// this.ref('name')
|
|
944
|
+
// this.field('fileContent')
|
|
945
|
+
|
|
946
|
+
// documents.forEach(function (doc) {
|
|
947
|
+
// this.add(doc)
|
|
948
|
+
// }, this)
|
|
949
|
+
// })
|
|
950
|
+
|
|
951
|
+
// tools.writeFileContent(path.join(process.cwd(),'full-index.txt'), JSON.stringify(idx));
|
|
952
|
+
|
|
953
|
+
// console.log(idx.search('test'));
|
|
954
|
+
// })
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
|
|
@@ -88,7 +88,13 @@ module.exports.init = (pkg, envTarget, compositeType) => {
|
|
|
88
88
|
// checking if at least the branch has been given as a parameter
|
|
89
89
|
if (!branches.branch) {
|
|
90
90
|
utils.tools.logError('ERROR : "branch" NOT PROVIDED as argument !!!');
|
|
91
|
-
|
|
91
|
+
throw 'BRANCH_NOT_PROVIDED';
|
|
92
|
+
|
|
93
|
+
// for envTarget / à la carte remote delivery, only master branch is allowed
|
|
94
|
+
} else {
|
|
95
|
+
if (pkg.remote && pkg.build && pkg.build.envTargetActive && !branches.isMaster) {
|
|
96
|
+
throw 'REMOTE_ENVTARGET_NOT_MASTER_BRANCH';
|
|
97
|
+
}
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
return Promise.resolve()
|
|
@@ -69,6 +69,16 @@ module.exports.getMessage = (options) => {
|
|
|
69
69
|
message.detailText = 'Uncompatible version of eUI found installed in the local CSDR project, please adjust and keep same compatible versions of eUI packages and projects';
|
|
70
70
|
break;
|
|
71
71
|
|
|
72
|
+
case 'BRANCH_NOT_PROVIDED':
|
|
73
|
+
message.detailTitle = 'RELEASE BRANCH missing - ABORTING!';
|
|
74
|
+
message.detailText = 'Package release needs to have a branch to build from as parameter from Bamboo';
|
|
75
|
+
break;
|
|
76
|
+
|
|
77
|
+
case 'REMOTE_ENVTARGET_NOT_MASTER_BRANCH':
|
|
78
|
+
message.detailTitle = 'REMOTE envTarget type branchis different from master - ABORTING!';
|
|
79
|
+
message.detailText = 'For envTarget remote delivery or "à la carte", only the master branch is allowed for build, contact support if any question';
|
|
80
|
+
break;
|
|
81
|
+
|
|
72
82
|
default:
|
|
73
83
|
message.detailTitle = 'GENERAL ERROR!';
|
|
74
84
|
message.detailText = options.exception;
|