@eui/tools 6.3.34 → 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 +18 -0
- package/package.json +1 -1
- package/sandbox.js +25 -12
- package/scripts/csdr/config/global.js +4 -2
- package/scripts/csdr/config/init.js +1 -1
- package/scripts/csdr/config/packages.js +7 -3
- 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,21 @@
|
|
|
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
|
+
* * *
|
|
10
|
+
## 6.3.35 (2023-02-15)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* euiVersion fetch for packages and remotes - MWP-9204 [MWP-9204](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9204) ([4873c6e4](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/4873c6e40f9822eaeb519a7e8e8236f050e347df))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.3.34 (2023-02-14)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -1134,37 +1134,50 @@ 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
1137
|
|
|
1139
1138
|
// Promise.resolve()
|
|
1140
1139
|
// .then(() => {
|
|
1140
|
+
// const prj = configUtils.projects.getCsdrProject('my-workplace-host-playground');
|
|
1141
1141
|
// return installUtils.projects.getLocalProjectRemoteDeps(prj);
|
|
1142
1142
|
// })
|
|
1143
1143
|
// .then((deps) => {
|
|
1144
|
-
//
|
|
1145
|
-
// })
|
|
1146
|
-
// .then(() => {
|
|
1144
|
+
// console.log(deps);
|
|
1147
1145
|
// })
|
|
1148
1146
|
|
|
1149
1147
|
|
|
1150
1148
|
// Promise.resolve()
|
|
1151
1149
|
// .then(() => {
|
|
1152
|
-
// const
|
|
1153
|
-
// return
|
|
1150
|
+
// const remote = configUtils.remotes.getRemote('cc-task-centre-eui15-remote-el-ui');
|
|
1151
|
+
// return buildPackageUtils.element.postBuild(remote, '1.0.0');
|
|
1154
1152
|
// })
|
|
1155
|
-
// .then((
|
|
1156
|
-
// console.log(
|
|
1153
|
+
// .then(() => {
|
|
1154
|
+
// console.log('ok');
|
|
1157
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');
|
|
1158
1171
|
|
|
1159
1172
|
|
|
1160
1173
|
Promise.resolve()
|
|
1161
1174
|
.then(() => {
|
|
1162
|
-
|
|
1163
|
-
|
|
1175
|
+
return installUtils.projects.getLocalProjectRemoteDeps(prj);
|
|
1176
|
+
})
|
|
1177
|
+
.then((deps) => {
|
|
1178
|
+
return installUtils.projects.importLocalProjectRemotes(prj, deps);
|
|
1164
1179
|
})
|
|
1165
1180
|
.then(() => {
|
|
1166
|
-
console.log('ok');
|
|
1167
1181
|
})
|
|
1168
1182
|
|
|
1169
1183
|
|
|
1170
|
-
|
|
@@ -165,6 +165,8 @@ module.exports.getConfig = () => {
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
module.exports.updateConfig = (args = { project, packages, remotes, reset}) => {
|
|
168
|
+
tools.logInfo('Updating euirc config');
|
|
169
|
+
console.log(args);
|
|
168
170
|
|
|
169
171
|
const configFile = path.join(process.cwd(), '.csdr', '.euirc.json');
|
|
170
172
|
|
|
@@ -194,11 +196,11 @@ module.exports.updateConfig = (args = { project, packages, remotes, reset}) => {
|
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
if (args.packages) {
|
|
197
|
-
newConfig.packages = tools.removeArrayDuplicates([...newConfig.packages, ...args.packages]);
|
|
199
|
+
newConfig.packages = tools.removeArrayDuplicates([...newConfig.packages || [], ...args.packages]);
|
|
198
200
|
}
|
|
199
201
|
|
|
200
202
|
if (args.remotes) {
|
|
201
|
-
newConfig.remotes = tools.removeArrayDuplicates([...newConfig.remotes, ...args.remotes]);
|
|
203
|
+
newConfig.remotes = tools.removeArrayDuplicates([...newConfig.remotes || [], ...args.remotes]);
|
|
202
204
|
}
|
|
203
205
|
}
|
|
204
206
|
|
|
@@ -276,11 +276,15 @@ const getPackageEuiVersion = module.exports.getPackageEuiVersion = (pkg, log = f
|
|
|
276
276
|
|
|
277
277
|
if (pkg.build && pkg.build.euiVersion) {
|
|
278
278
|
version = pkg.build.euiVersion;
|
|
279
|
+
}
|
|
279
280
|
|
|
280
|
-
|
|
281
|
-
|
|
281
|
+
if (!version) {
|
|
282
|
+
if (pkg.euiVersion) {
|
|
283
|
+
version = pkg.euiVersion;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
282
286
|
|
|
283
|
-
|
|
287
|
+
if (!version) {
|
|
284
288
|
version = getEuiVersionCore(pkg);
|
|
285
289
|
}
|
|
286
290
|
|
|
@@ -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
|