@eui/tools 5.3.8 → 5.3.11
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 +27 -0
- package/package.json +1 -1
- package/scripts/csdr/cli/package.js +26 -2
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +3 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/fallback.component.ts +1 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +4 -5
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +0 -12
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/test.ts.TO_REPLACE +2 -2
- package/scripts/csdr/release/app/release-app.js +5 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.11
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 5.3.11 (2022-06-14)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* added envTarget delivery option for new remote v10 and up creation - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([6451fcd3](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/6451fcd3047c344eb64906e6485ee9b855e13c27))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 5.3.10 (2022-06-10)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* code cleanup MWP-8326 [MWP-8326](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8326) ([32e3f665](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/32e3f665a91f188e4a7fadfedd9aeec220a657e0))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 5.3.9 (2022-06-10)
|
|
20
|
+
|
|
21
|
+
##### Chores
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* adapted app release taking care of support/develop merge - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([900f3723](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/900f3723d75b83e03fd5c80f6c9bb17602e9c8c2))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
1
28
|
## 5.3.8 (2022-06-09)
|
|
2
29
|
|
|
3
30
|
##### Chores
|
package/package.json
CHANGED
|
@@ -178,7 +178,12 @@ const prompt = () => {
|
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
|
|
181
|
-
const buildFrontend = (
|
|
181
|
+
const buildFrontend = (
|
|
182
|
+
name, scope,
|
|
183
|
+
frontendType, frontendVersion,
|
|
184
|
+
isRouteModule, isCsdrRepo, externalRepoName, isEnvTargetRemote,
|
|
185
|
+
) => {
|
|
186
|
+
|
|
182
187
|
tools.logTitle('Generating package');
|
|
183
188
|
|
|
184
189
|
let fullName = scope.substr(1) + '-' + name;
|
|
@@ -207,14 +212,23 @@ const buildFrontend = (name, scope, frontendType, frontendVersion, isRouteModule
|
|
|
207
212
|
}
|
|
208
213
|
}
|
|
209
214
|
|
|
215
|
+
// generating default git repo
|
|
210
216
|
if (isCsdrRepo) {
|
|
211
217
|
repoName = `${fullName}.git`;
|
|
212
|
-
|
|
213
218
|
} else {
|
|
214
219
|
repoName = `${externalRepoName}/${fullName}.git`;
|
|
215
220
|
}
|
|
216
221
|
|
|
222
|
+
// generating target paths
|
|
217
223
|
const targetPath = path.join(TARGET_ROOT_PATH, fullName);
|
|
224
|
+
const rootPackagePath = path.join(TARGET_ROOT_PATH, `${scope.substr(1)}-${name}-ui`);
|
|
225
|
+
|
|
226
|
+
if (!frontendVersion === defaultConfig.pkgFrontendVersion.DEFAULT) {
|
|
227
|
+
if (frontendType === defaultConfig.pkgFrontendType.REMOTE && !tools.isDirExists(rootPackagePath)) {
|
|
228
|
+
tools.logError(`${rootPackagePath} NOT FOUND, you must mount the root package ui before creating the remote`);
|
|
229
|
+
throw 'ROOT_PACKAGE_NOT_FOUND';
|
|
230
|
+
}
|
|
231
|
+
}
|
|
218
232
|
|
|
219
233
|
const pkg = {
|
|
220
234
|
name: fullName,
|
|
@@ -322,6 +336,7 @@ const buildFrontend = (name, scope, frontendType, frontendVersion, isRouteModule
|
|
|
322
336
|
return configUtils.global.registerCsdrPackage(pkg, frontendType === defaultConfig.pkgFrontendType.REMOTE, scope, name);
|
|
323
337
|
})
|
|
324
338
|
|
|
339
|
+
|
|
325
340
|
.then(() => {
|
|
326
341
|
tools.logInfo('Executing post build operations');
|
|
327
342
|
tools.move(path.join(targetPath, 'gitignore_TO_REPLACE'), path.join(targetPath, '.gitignore'));
|
|
@@ -335,6 +350,14 @@ const buildFrontend = (name, scope, frontendType, frontendVersion, isRouteModule
|
|
|
335
350
|
return tools.removeFilesExtension(targetPath, '.TO_REPLACE');
|
|
336
351
|
})
|
|
337
352
|
|
|
353
|
+
.then(() => {
|
|
354
|
+
// envTarget remote type specific
|
|
355
|
+
if (isEnvTargetRemote) {
|
|
356
|
+
tools.logInfo('Moving sources from remote to root package for envTarget remote type');
|
|
357
|
+
tools.move(path.join(targetPath, 'src'), path.join(rootPackagePath, 'assets', 'remote-sources'));
|
|
358
|
+
}
|
|
359
|
+
})
|
|
360
|
+
|
|
338
361
|
.then(() => {
|
|
339
362
|
tools.logSuccess();
|
|
340
363
|
})
|
|
@@ -434,6 +457,7 @@ module.exports.generate = () => {
|
|
|
434
457
|
answers.isRouteModule,
|
|
435
458
|
answers.isCsdrRepo,
|
|
436
459
|
answers.externalRepoName,
|
|
460
|
+
answers.isEnvTargetRemote,
|
|
437
461
|
);
|
|
438
462
|
|
|
439
463
|
} else if (answers.pkgType === defaultConfig.pkgType.BACKEND) {
|
package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
|
|
4
4
|
import { take } from 'rxjs/operators';
|
|
5
5
|
|
|
6
|
-
import { CONFIG_TOKEN
|
|
7
|
-
import { ELEMENT_ROUTER_TOKEN, IRouterService,
|
|
6
|
+
import { CONFIG_TOKEN } from '@eui/core';
|
|
7
|
+
import { ELEMENT_ROUTER_TOKEN, IRouterService, ElementSetupService } from '@csdr/integration/element';
|
|
8
8
|
|
|
9
9
|
import { appConfig } from '../config/index';
|
|
10
10
|
|
|
@@ -56,8 +56,7 @@ export class ModuleComponent implements OnInit {
|
|
|
56
56
|
constructor(private router: Router,
|
|
57
57
|
@Inject(ELEMENT_ROUTER_TOKEN) private routerService: IRouterService,
|
|
58
58
|
@Inject(CONFIG_TOKEN) public config: any,
|
|
59
|
-
private
|
|
60
|
-
private userService: UserService) {
|
|
59
|
+
private elementSetupService: ElementSetupService) {
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
public ngOnInit() {
|
|
@@ -68,7 +67,7 @@ export class ModuleComponent implements OnInit {
|
|
|
68
67
|
private loadData() {
|
|
69
68
|
this.setStatus(ElementStatus.Loading);
|
|
70
69
|
try {
|
|
71
|
-
|
|
70
|
+
this.elementSetupService.init()
|
|
72
71
|
.pipe(take(1))
|
|
73
72
|
.subscribe((loadStatus: { success: boolean, error?: string }) => {
|
|
74
73
|
if (!loadStatus.success) {
|
package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
// This file can be replaced during build by using the `fileReplacements` array.
|
|
2
|
-
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
3
|
-
// The list of file replacements can be found in `angular.json`.
|
|
4
|
-
|
|
5
1
|
export const environment = {
|
|
6
2
|
production: false,
|
|
7
3
|
};
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* In development mode, to ignore zone related error stack frames such as
|
|
11
|
-
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
|
|
12
|
-
* import the following file, but please comment it out in production mode
|
|
13
|
-
* because it will have performance impact when throw error
|
|
14
|
-
*/
|
|
15
|
-
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
|
@@ -4,7 +4,7 @@ import 'zone.js/dist/zone-testing';
|
|
|
4
4
|
import { getTestBed } from '@angular/core/testing';
|
|
5
5
|
import {
|
|
6
6
|
BrowserDynamicTestingModule,
|
|
7
|
-
platformBrowserDynamicTesting
|
|
7
|
+
platformBrowserDynamicTesting,
|
|
8
8
|
} from '@angular/platform-browser-dynamic/testing';
|
|
9
9
|
|
|
10
10
|
declare const require: any;
|
|
@@ -12,7 +12,7 @@ declare const require: any;
|
|
|
12
12
|
// First, initialize the Angular testing environment.
|
|
13
13
|
getTestBed().initTestEnvironment(
|
|
14
14
|
BrowserDynamicTestingModule,
|
|
15
|
-
platformBrowserDynamicTesting()
|
|
15
|
+
platformBrowserDynamicTesting(),
|
|
16
16
|
);
|
|
17
17
|
// Then we find all the tests.
|
|
18
18
|
const context = require.context('./', true, /\.spec\.ts$/);
|
|
@@ -348,6 +348,11 @@ module.exports.run = () => {
|
|
|
348
348
|
return utils.git.mergeMasterToDevelop(project, project.folder);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
+
|
|
352
|
+
if (isSupportBranch && project.build && project.build.supportSnapshotBranch) {
|
|
353
|
+
utils.tools.logInfo('Branch is support / supportSnapshotBranch config detected');
|
|
354
|
+
return utils.git.mergeSupportToSupportDevelop(project, project.folder, branch, project.build.supportSnapshotBranch);
|
|
355
|
+
}
|
|
351
356
|
}
|
|
352
357
|
})
|
|
353
358
|
|