@eui/tools 6.1.5 → 6.1.7
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/init.js +7 -7
- package/scripts/csdr/init/packages.js +12 -12
- package/scripts/csdr/init/projects.js +2 -2
- package/scripts/csdr/install/projects.js +1 -1
- package/scripts/utils/pre-build/injection/externals.js +6 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.1.
|
|
1
|
+
6.1.7
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.1.7 (2022-11-08)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* wrong method call - MWP-8946 [MWP-8946](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8946) ([c0a0ab94](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c0a0ab94d6579ab44adb0eaca395e7b6fb5fe45d))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.1.6 (2022-11-08)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* external sources for existing project prevention on init phase - MWP-8946 [MWP-8946](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8946) ([f68f03f8](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/f68f03f855b5dd8501c6d34c112d3f4d5ad00721))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.1.5 (2022-11-08)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -97,16 +97,16 @@ module.exports.init = () => {
|
|
|
97
97
|
// Importing external sources
|
|
98
98
|
.then(() => {
|
|
99
99
|
if (finalResponse.project) {
|
|
100
|
-
return initUtils.projects.importExternalSources();
|
|
100
|
+
return initUtils.projects.importExternalSources(true);
|
|
101
101
|
}
|
|
102
102
|
})
|
|
103
103
|
|
|
104
|
-
// Generating virtual remote - experimental
|
|
105
|
-
.then(() => {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
})
|
|
104
|
+
// Generating virtual remote - experimental TODO
|
|
105
|
+
// .then(() => {
|
|
106
|
+
// if (finalResponse.pkg && finalResponse.pkgOnly) {
|
|
107
|
+
// return initUtils.remotes.generateVirtualRemote(pkg);
|
|
108
|
+
// }
|
|
109
|
+
// })
|
|
110
110
|
|
|
111
111
|
// adapt and inject particular root data/config for eUI version detected on project
|
|
112
112
|
// if multiple versions of eUI are detected on the same project, an exception is thrown
|
|
@@ -88,7 +88,7 @@ module.exports.cloneHostPackage = (projectName) => {
|
|
|
88
88
|
|
|
89
89
|
const project = configUtils.projects.getProject(projectName);
|
|
90
90
|
|
|
91
|
-
if (!project.hostPackage) {
|
|
91
|
+
if (!project.hostPackage || project.externalSourcesOnInit === false) {
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -118,22 +118,22 @@ module.exports.cloneHostPackage = (projectName) => {
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
module.exports.installHostPackage = (projectName) => {
|
|
121
|
+
|
|
122
|
+
const project = configUtils.projects.getProject(projectName);
|
|
123
|
+
|
|
124
|
+
if (!project.hostPackage || project.externalSourcesOnInit === false) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
|
|
121
128
|
tools.logTitle('Installing host package');
|
|
122
129
|
|
|
123
130
|
return Promise.resolve()
|
|
124
131
|
.then(() => {
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
tools.logInfo('project hostPackage not defined...skipping');
|
|
129
|
-
|
|
130
|
-
} else {
|
|
131
|
-
const pkg = configUtils.packages.getPackageByNpmPkg(project.hostPackage, true);
|
|
132
|
-
if (!pkg) {
|
|
133
|
-
throw new Error('Invalid host package provided / unknown to CSDR config');
|
|
134
|
-
}
|
|
135
|
-
return installUtils.projects.installHostPackage(project, pkg.npmPkg);
|
|
132
|
+
const pkg = configUtils.packages.getPackageByNpmPkg(project.hostPackage, true);
|
|
133
|
+
if (!pkg) {
|
|
134
|
+
throw new Error('Invalid host package provided / unknown to CSDR config');
|
|
136
135
|
}
|
|
136
|
+
// return installUtils.projects.installHostPackage(project, pkg.npmPkg); // TODO
|
|
137
137
|
})
|
|
138
138
|
|
|
139
139
|
.catch((e) => {
|
|
@@ -58,14 +58,14 @@ module.exports.importExternalFeatures = () => {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
module.exports.importExternalSources = () => {
|
|
61
|
+
module.exports.importExternalSources = (init = false) => {
|
|
62
62
|
return Promise.resolve()
|
|
63
63
|
.then(() => {
|
|
64
64
|
tools.logTitle("Import external sources for local projects");
|
|
65
65
|
|
|
66
66
|
return configUtils.projects.getProjects().reduce((promise, prj) => {
|
|
67
67
|
return promise.then(() => (
|
|
68
|
-
injectionUtils.externals.injectExternalAppSources(prj)
|
|
68
|
+
injectionUtils.externals.injectExternalAppSources(prj, false, init)
|
|
69
69
|
));
|
|
70
70
|
}, Promise.resolve());
|
|
71
71
|
})
|
|
@@ -160,13 +160,18 @@ const injectExternalAppRootCore = (project, build = false, injectedNpmPkg, injec
|
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
|
|
163
|
-
module.exports.injectExternalAppSources = (project, build = false) => {
|
|
163
|
+
module.exports.injectExternalAppSources = (project, build = false, init = false) => {
|
|
164
164
|
|
|
165
165
|
if (!project.externalSources) {
|
|
166
166
|
tools.logInfo('No external app sources setup...skipping');
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
if (project.externalSourcesOnInit === false && init) {
|
|
171
|
+
tools.logInfo('Project as not external sources pulling on init phase...skipping');
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
|
|
170
175
|
let { euiVersion } = tools.getArgs();
|
|
171
176
|
|
|
172
177
|
if (!euiVersion && project.virtual) {
|