@eui/tools 6.3.35 → 6.3.36
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 +23 -15
- package/scripts/csdr/config/init.js +1 -1
- package/scripts/csdr/config/remotes.js +17 -6
- package/scripts/csdr/install/projects.js +1 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.3.
|
|
1
|
+
6.3.36
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.3.36 (2023-02-15)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* remotes initialisation issues - MWP-9204 [MWP-9204](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9204) ([bac59a6c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/bac59a6c5e1b9329d01373b5cee1be1c8b613d3b))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.3.35 (2023-02-15)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -1134,18 +1134,6 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
|
1134
1134
|
// console.log(e);
|
|
1135
1135
|
// })
|
|
1136
1136
|
|
|
1137
|
-
// const prj = configUtils.projects.getCsdrProject('my-workplace-host-playground');
|
|
1138
|
-
|
|
1139
|
-
// Promise.resolve()
|
|
1140
|
-
// .then(() => {
|
|
1141
|
-
// return installUtils.projects.getLocalProjectRemoteDeps(prj);
|
|
1142
|
-
// })
|
|
1143
|
-
// .then((deps) => {
|
|
1144
|
-
// return installUtils.projects.importLocalProjectRemotes(prj, deps);
|
|
1145
|
-
// })
|
|
1146
|
-
// .then(() => {
|
|
1147
|
-
// })
|
|
1148
|
-
|
|
1149
1137
|
|
|
1150
1138
|
// Promise.resolve()
|
|
1151
1139
|
// .then(() => {
|
|
@@ -1165,11 +1153,31 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
|
|
|
1165
1153
|
// .then(() => {
|
|
1166
1154
|
// console.log('ok');
|
|
1167
1155
|
// })
|
|
1156
|
+
// Promise.resolve()
|
|
1157
|
+
// .then(() => {
|
|
1158
|
+
// const pkg = configUtils.packages.getPackage('mywp-eusearch-eui10-remote-el-ui');
|
|
1159
|
+
// const euiVersion = configUtils.packages.getPackageEuiVersion(pkg, true);
|
|
1160
|
+
// console.log(euiVersion);
|
|
1161
|
+
// })
|
|
1162
|
+
// Promise.resolve()
|
|
1163
|
+
// .then(() => {
|
|
1164
|
+
// // const packages = configUtils.packages.getCsdrPackages();
|
|
1165
|
+
// // console.log(packages);
|
|
1166
|
+
// const remotes = configUtils.remotes.getCsdrRemotes();
|
|
1167
|
+
// console.log(remotes);
|
|
1168
|
+
// })
|
|
1169
|
+
|
|
1170
|
+
const prj = configUtils.projects.getCsdrProject('my-workplace-host-playground');
|
|
1171
|
+
|
|
1172
|
+
|
|
1168
1173
|
Promise.resolve()
|
|
1169
1174
|
.then(() => {
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1175
|
+
return installUtils.projects.getLocalProjectRemoteDeps(prj);
|
|
1176
|
+
})
|
|
1177
|
+
.then((deps) => {
|
|
1178
|
+
return installUtils.projects.importLocalProjectRemotes(prj, deps);
|
|
1179
|
+
})
|
|
1180
|
+
.then(() => {
|
|
1173
1181
|
})
|
|
1174
1182
|
|
|
1175
1183
|
|
|
@@ -91,24 +91,35 @@ module.exports.getCsdrRemotes = (hostName, euiVersion) => {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
const remotesConfig = require(path.join(process.cwd(), '.csdr', '.euirc-csdr-remotes.json'));
|
|
94
|
-
|
|
94
|
+
let remotesArray = Object.keys(remotesConfig).map((r) => {
|
|
95
95
|
const remote = remotesConfig[r];
|
|
96
96
|
remote.name = r;
|
|
97
97
|
return remote;
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
let outRemotes = remotesArray;
|
|
101
|
-
|
|
102
100
|
if (hostName) {
|
|
103
|
-
|
|
101
|
+
remotesArray = remotesArray.filter(r => hostNameFilterFn(r));
|
|
104
102
|
}
|
|
105
103
|
if (euiVersion) {
|
|
106
|
-
|
|
104
|
+
remotesArray = remotesArray.filter(r => r.euiVersion === euiVersion);
|
|
107
105
|
}
|
|
108
106
|
|
|
107
|
+
const outRemotes = {};
|
|
108
|
+
remotesArray.forEach((r) => {
|
|
109
|
+
outRemotes[r.name] = r;
|
|
110
|
+
})
|
|
111
|
+
|
|
109
112
|
return outRemotes;
|
|
110
113
|
}
|
|
111
114
|
|
|
115
|
+
module.exports.getCsdrRemotesArray = (hostName, euiVersion) => {
|
|
116
|
+
const remotes = this.getCsdrRemotes(hostName, euiVersion);
|
|
117
|
+
|
|
118
|
+
return Object.keys(remotes).map((r) => {
|
|
119
|
+
return remotes[r];
|
|
120
|
+
})
|
|
121
|
+
}
|
|
122
|
+
|
|
112
123
|
|
|
113
124
|
module.exports.getRemotes = () => {
|
|
114
125
|
const remotes = innerGlobal.getConfig().remotes;
|
|
@@ -125,7 +136,7 @@ module.exports.getRemoteByNpmPkg = (npmPkg, fromCsdrConfig) => {
|
|
|
125
136
|
let remotes;
|
|
126
137
|
|
|
127
138
|
if (fromCsdrConfig) {
|
|
128
|
-
remotes = this.
|
|
139
|
+
remotes = this.getCsdrRemotesArray();
|
|
129
140
|
|
|
130
141
|
} else {
|
|
131
142
|
remotes = this.getRemotes();
|
|
@@ -194,7 +194,7 @@ const getLocalProjectRemoteDeps = module.exports.getLocalProjectRemoteDeps = (pr
|
|
|
194
194
|
tools.logTitle(`Detecting remotes deps for project : ${prj.name}`);
|
|
195
195
|
|
|
196
196
|
const euiVersion = configUtils.global.getLocalEuiVersion();
|
|
197
|
-
const remotes = configUtils.remotes.
|
|
197
|
+
const remotes = configUtils.remotes.getCsdrRemotesArray(prj.hostName, euiVersion);
|
|
198
198
|
|
|
199
199
|
let remoteDeps = {};
|
|
200
200
|
remotes
|