@eui/tools 4.17.3 → 4.17.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 +36 -0
- package/package.json +1 -1
- package/sandbox.js +29 -15
- package/scripts/csdr/audit/audit-utils.js +2 -2
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +8 -4
- package/scripts/csdr/init/init-utils.js +4 -4
- package/scripts/csdr/init/prompt.js +3 -1
- package/scripts/csdr/init/resources/13.x/resolutions.json +1 -1
- package/scripts/csdr/metadata/package-history.js +5 -0
- package/scripts/csdr/metadata/stats.js +9 -5
- package/scripts/csdr/release/package/ui.js +3 -3
- package/scripts/csdr/init/resources/13.x/yarn.lock +0 -14907
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.17.
|
|
1
|
+
4.17.7
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## 4.17.7 (2021-12-02)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* updated handlebars to 4.7.7 in v13 resolutions - enabled back UI auditing - fixed teams display on init - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([bd101f2d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/bd101f2d6466308c21bd4bdc57a504a5cdc810a6))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 4.17.6 (2021-11-30)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* package history for remote on first release - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([eb197f5f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/eb197f5faaa17c8aa00e9df33d2d09ffce65f095))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 4.17.5 (2021-11-25)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* eui10 element creation adaptation MWP-7583 [MWP-7583](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7583) ([0165130e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0165130e42ff83aa343bedb98da13c1c608f442f))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
28
|
+
## 4.17.4 (2021-11-24)
|
|
29
|
+
|
|
30
|
+
##### Chores
|
|
31
|
+
|
|
32
|
+
* **other:**
|
|
33
|
+
* removed yarn.lock injection - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([5bd7860f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/5bd7860f8d1296aeca3ed899cbb334d5cef56e15))
|
|
34
|
+
|
|
35
|
+
* * *
|
|
36
|
+
* * *
|
|
1
37
|
## 4.17.3 (2021-11-24)
|
|
2
38
|
|
|
3
39
|
##### Chores
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -597,24 +597,24 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
|
|
|
597
597
|
// });
|
|
598
598
|
// console.log(tools.sortArray(a, 'name'));
|
|
599
599
|
// })
|
|
600
|
-
return Promise.resolve()
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
600
|
+
// return Promise.resolve()
|
|
601
|
+
// .then(() => {
|
|
602
|
+
// console.log('t1')
|
|
603
|
+
// console.log(new Date());
|
|
604
604
|
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
605
|
+
// return new Promise((resolve) => {
|
|
606
|
+
// setTimeout(resolve, 8000);
|
|
607
|
+
// });
|
|
608
|
+
// })
|
|
609
609
|
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
610
|
+
// .then(() => {
|
|
611
|
+
// console.log('t2')
|
|
612
|
+
// console.log(new Date());
|
|
613
|
+
// })
|
|
614
614
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
615
|
+
// .then(() => {
|
|
616
|
+
// console.log('T3')
|
|
617
|
+
// })
|
|
618
618
|
|
|
619
619
|
// return Promise.resolve()
|
|
620
620
|
// .then(() => {
|
|
@@ -630,3 +630,17 @@ return Promise.resolve()
|
|
|
630
630
|
// tools.logBanner('this is the content of the banner');
|
|
631
631
|
// })
|
|
632
632
|
|
|
633
|
+
return Promise.resolve()
|
|
634
|
+
.then(() => {
|
|
635
|
+
const csdrProjects = configUtils.projects.getCsdrProjects().filter((p) => {
|
|
636
|
+
return p.initListVisible === true;
|
|
637
|
+
}).map(p => ({ name: p.name, value: p.name }));
|
|
638
|
+
console.log(csdrProjects);
|
|
639
|
+
|
|
640
|
+
const teams = configUtils.projects.getTeamsProject(csdrProjects, answersProject.project)
|
|
641
|
+
.map(t => ({ name: getLabelTeam(t), value: t }))
|
|
642
|
+
.sort((a, b) => a.name > b.name ? 1 : a.name < b.name ? -1 : 0)
|
|
643
|
+
.concat([{ name: '* Install all packages', value: 'all' }]);
|
|
644
|
+
|
|
645
|
+
console.log(teams);
|
|
646
|
+
})
|
|
@@ -50,7 +50,7 @@ module.exports.audit = (pkg) => {
|
|
|
50
50
|
.then(() => {
|
|
51
51
|
return Promise.resolve()
|
|
52
52
|
.then(() => {
|
|
53
|
-
return execa.shellSync('yarn audit --level
|
|
53
|
+
return execa.shellSync('yarn audit --level high', { cwd: process.cwd(), stdio: 'inherit' });
|
|
54
54
|
})
|
|
55
55
|
.catch((e) => {}) // it can fail
|
|
56
56
|
})
|
|
@@ -61,7 +61,7 @@ module.exports.audit = (pkg) => {
|
|
|
61
61
|
.then(() => {
|
|
62
62
|
const auditFile = path.join(process.cwd(), 'audit.json');
|
|
63
63
|
tools.logInfo(`Creating audit file`)
|
|
64
|
-
return execa.shellSync(`yarn audit --level
|
|
64
|
+
return execa.shellSync(`yarn audit --level high --json > ${auditFile}`, { cwd: process.cwd(), stdio: 'inherit' });
|
|
65
65
|
})
|
|
66
66
|
.then(() => {
|
|
67
67
|
tools.logSuccess();
|
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
USER_SERVICE_HOST_TOKEN,
|
|
47
47
|
UserMapping,
|
|
48
48
|
UX_SERVICE_HOST_TOKEN,
|
|
49
|
+
UX_APP_SHELL_SERVICE_HOST_TOKEN,
|
|
49
50
|
UxAppShellServiceMapping,
|
|
50
51
|
} from '@csdr/integration';
|
|
51
52
|
import { RoutingModule } from './routing.module';
|
|
@@ -84,7 +85,7 @@ export function openidConnectInterceptorFactory(config) {
|
|
|
84
85
|
reducerProvider,
|
|
85
86
|
{
|
|
86
87
|
provide: EUI_CONFIG_TOKEN,
|
|
87
|
-
useValue: { appConfig, environment },
|
|
88
|
+
useValue: { appConfig: { ...appConfig, ...environment }, environment },
|
|
88
89
|
},
|
|
89
90
|
{
|
|
90
91
|
provide: HTTP_INTERCEPTORS,
|
|
@@ -123,6 +124,7 @@ export function openidConnectInterceptorFactory(config) {
|
|
|
123
124
|
// used in the el-mappers
|
|
124
125
|
{ provide: USER_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UserService'] },
|
|
125
126
|
{ provide: UX_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxService'] },
|
|
127
|
+
{ provide: UX_APP_SHELL_SERVICE_HOST_TOKEN, useFactory: () => window['PROVIDERS']['UxAppShellService'] },
|
|
126
128
|
|
|
127
129
|
{
|
|
128
130
|
provide: PushNotificationsService,
|
|
@@ -143,9 +145,11 @@ export function openidConnectInterceptorFactory(config) {
|
|
|
143
145
|
router: Router,
|
|
144
146
|
storeService: StoreService,
|
|
145
147
|
iI18nService: I18nService,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
hostUxService: any,
|
|
149
|
+
hostUxAppShellService: any) => new UxAppShellServiceMapping(
|
|
150
|
+
config, http, platformId, router, storeService, iI18nService, hostUxService, hostUxAppShellService),
|
|
151
|
+
deps: [CONFIG_TOKEN, HttpClient, PLATFORM_ID, Router, StoreService, I18nService,
|
|
152
|
+
UX_SERVICE_HOST_TOKEN, UX_APP_SHELL_SERVICE_HOST_TOKEN],
|
|
149
153
|
},
|
|
150
154
|
{ provide: ELEMENT_ROUTER_TOKEN, useFactory: () => window['PROVIDERS']['ELEMENT_ROUTER_TOKEN'], deps: [] },
|
|
151
155
|
// TODO[REMOTE-SETUP] uncomment if zipkin is used
|
|
@@ -218,12 +218,12 @@ module.exports.processLocalEuiVersions = () => {
|
|
|
218
218
|
|
|
219
219
|
tools.copy(blResourcesFile, blDestFile);
|
|
220
220
|
|
|
221
|
-
tools.logInfo(`Processing yarn.lock replacement for eUI version found : ${euiVersion}`);
|
|
221
|
+
// tools.logInfo(`Processing yarn.lock replacement for eUI version found : ${euiVersion}`);
|
|
222
222
|
|
|
223
|
-
const yResourcesFile = path.join(__dirname, 'resources', euiVersion, 'yarn.lock');
|
|
224
|
-
const yDestFile = path.join(process.cwd(), 'yarn.lock');
|
|
223
|
+
// const yResourcesFile = path.join(__dirname, 'resources', euiVersion, 'yarn.lock');
|
|
224
|
+
// const yDestFile = path.join(process.cwd(), 'yarn.lock');
|
|
225
225
|
|
|
226
|
-
tools.copy(yResourcesFile, yDestFile);
|
|
226
|
+
// tools.copy(yResourcesFile, yDestFile);
|
|
227
227
|
}
|
|
228
228
|
})
|
|
229
229
|
.catch((e) => {
|
|
@@ -17,7 +17,9 @@ module.exports.start = () => {
|
|
|
17
17
|
type: "list",
|
|
18
18
|
name: "project",
|
|
19
19
|
message: "Which app / project do you work on?",
|
|
20
|
-
choices: csdrProjects.
|
|
20
|
+
choices: csdrProjects.filter((p) => {
|
|
21
|
+
return p.initListVisible === true;
|
|
22
|
+
}).map(p => ({ name: p.name, value: p.name }))
|
|
21
23
|
});
|
|
22
24
|
|
|
23
25
|
const answersTeam = await inquirer.prompt({
|
|
@@ -126,6 +126,11 @@ const getDiffBetweenBuildVersions = (pkg, fromBuildMetadata, toBuildMetadata) =>
|
|
|
126
126
|
|
|
127
127
|
const DEVOPS_METADATA_PATH = configUtils.global.getConfigOptions().DEVOPS_METADATA_PATH;
|
|
128
128
|
|
|
129
|
+
if (!fromBuildMetadata) {
|
|
130
|
+
tools.logWarning('No previous metadata found for package...skipping');
|
|
131
|
+
return {};
|
|
132
|
+
}
|
|
133
|
+
|
|
129
134
|
return Promise.resolve()
|
|
130
135
|
.then(() => {
|
|
131
136
|
return innerCommon.getDevopsMetadata();
|
|
@@ -10,7 +10,7 @@ const configUtils = require('../config/config-utils');
|
|
|
10
10
|
const metadataUtils = require('../metadata/metadata-utils');
|
|
11
11
|
|
|
12
12
|
// FETCH ARGS
|
|
13
|
-
const { dryRun } = tools.getArgs();
|
|
13
|
+
const { dryRun, skipClone } = tools.getArgs();
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
const groupBy = (xs, f) => {
|
|
@@ -29,7 +29,7 @@ module.exports.run = () => {
|
|
|
29
29
|
|
|
30
30
|
return Promise.resolve()
|
|
31
31
|
.then(() => {
|
|
32
|
-
if (!dryRun) {
|
|
32
|
+
if (!dryRun && !skipClone) {
|
|
33
33
|
return metadataUtils.common.cloneMetadataRepo();
|
|
34
34
|
}
|
|
35
35
|
})
|
|
@@ -45,6 +45,8 @@ module.exports.run = () => {
|
|
|
45
45
|
|
|
46
46
|
// Accumulating all packages metadata in one single object
|
|
47
47
|
packages.forEach((p) => {
|
|
48
|
+
console.log(`Processing package : ${p.name}`);
|
|
49
|
+
|
|
48
50
|
const metadataRoot = path.join(process.cwd(), 'packages', 'devops-metadata');
|
|
49
51
|
const pkgMetadata = tools.getJsonFileContent(path.join(metadataRoot, p.devopsMetadataFile));
|
|
50
52
|
const pkgMetadataVersions = tools.getJsonFileContent(path.join(metadataRoot, p.devopsVersionsMetadataFile));
|
|
@@ -52,9 +54,11 @@ module.exports.run = () => {
|
|
|
52
54
|
const gitCommits = [];
|
|
53
55
|
if (pkgMetadata.versions) {
|
|
54
56
|
pkgMetadata.versions.forEach((v) => {
|
|
55
|
-
v.gitMetadata.commits
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
if (v.gitMetadata.commits) {
|
|
58
|
+
v.gitMetadata.commits.forEach((c) => {
|
|
59
|
+
gitCommits.push(c);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
58
62
|
});
|
|
59
63
|
}
|
|
60
64
|
|