@eui/tools 5.0.0-rc.7 → 5.0.0-rc.8
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 +14 -0
- package/package.json +1 -1
- package/sandbox.js +3 -2
- package/scripts/csdr/config/angular.js +12 -6
- package/scripts/csdr/sync/sync-utils.js +6 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.0.0-rc.
|
|
1
|
+
5.0.0-rc.8
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 5.0.0-rc.8 (2021-10-25)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* updated package.json version - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([0029f3c5](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0029f3c57c6bed7880091b93e39e4e464584f141))
|
|
7
|
+
* added option for no src package testing for eui-components - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([d6cb7036](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d6cb7036b33bafc3dd35657f77e678dbc7c5badf))
|
|
8
|
+
##### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **other:**
|
|
11
|
+
* http-proxy-agent wrong version - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([78a5427e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/78a5427e3fe5aaa83fed7e597fe34d641ad6c86e))
|
|
12
|
+
|
|
13
|
+
* * *
|
|
14
|
+
* * *
|
|
1
15
|
## 5.0.0-rc.7 (2021-10-21)
|
|
2
16
|
|
|
3
17
|
##### Bug Fixes
|
package/package.json
CHANGED
package/sandbox.js
CHANGED
|
@@ -596,7 +596,8 @@ const notificationUtils = require('./scripts/utils/notification/notification-uti
|
|
|
596
596
|
|
|
597
597
|
return Promise.resolve()
|
|
598
598
|
.then(() => {
|
|
599
|
-
const
|
|
600
|
-
|
|
599
|
+
const pkgName = 'eui';
|
|
600
|
+
const pkg = configUtils.packages.getPackage(pkgName, true);
|
|
601
|
+
console.log(pkg);
|
|
601
602
|
})
|
|
602
603
|
|
|
@@ -15,7 +15,7 @@ const angularConfigDef = {
|
|
|
15
15
|
"projects": {}
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
const angularProjectDef = {
|
|
20
20
|
"root": "",
|
|
21
21
|
"sourceRoot": "apps/@project.name@/src",
|
|
@@ -435,7 +435,7 @@ const angularProjectDefConfigurationOptimized = {
|
|
|
435
435
|
|
|
436
436
|
const angularPackageDef = {
|
|
437
437
|
"root": "@path@/@module.name@",
|
|
438
|
-
"sourceRoot": "@path@/@module.name
|
|
438
|
+
"sourceRoot": "@path@/@module.name@@srcRoot@",
|
|
439
439
|
"projectType": "library",
|
|
440
440
|
"prefix": "lib",
|
|
441
441
|
"architect": {
|
|
@@ -454,7 +454,7 @@ const angularPackageDef = {
|
|
|
454
454
|
"test": {
|
|
455
455
|
"builder": "@angular-devkit/build-angular:karma",
|
|
456
456
|
"options": {
|
|
457
|
-
"main": "@path@/@module.name@/
|
|
457
|
+
"main": "@path@/@module.name@@srcRoot@/testing/test.ts",
|
|
458
458
|
"tsConfig": "@path@/@module.name@/tsconfig.spec.json",
|
|
459
459
|
"karmaConfig": "@path@/@module.name@/karma.conf.js"
|
|
460
460
|
}
|
|
@@ -465,7 +465,7 @@ const angularPackageDef = {
|
|
|
465
465
|
|
|
466
466
|
const angularPackageDefv13 = {
|
|
467
467
|
"root": "@path@/@module.name@",
|
|
468
|
-
"sourceRoot": "@path@/@module.name
|
|
468
|
+
"sourceRoot": "@path@/@module.name@@srcRoot@",
|
|
469
469
|
"projectType": "library",
|
|
470
470
|
"prefix": "lib",
|
|
471
471
|
"architect": {
|
|
@@ -484,7 +484,7 @@ const angularPackageDefv13 = {
|
|
|
484
484
|
"test": {
|
|
485
485
|
"builder": "@angular-devkit/build-angular:karma",
|
|
486
486
|
"options": {
|
|
487
|
-
"main": "@path@/@module.name@/
|
|
487
|
+
"main": "@path@/@module.name@@srcRoot@/testing/test.ts",
|
|
488
488
|
"tsConfig": "@path@/@module.name@/tsconfig.spec.json",
|
|
489
489
|
"karmaConfig": "@path@/@module.name@/karma.conf.js"
|
|
490
490
|
}
|
|
@@ -636,10 +636,16 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
|
|
|
636
636
|
projectDef = JSON.stringify(angularPackageDefv13);
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
+
let srcRoot = '/src';
|
|
640
|
+
if (pkg.build && typeof pkg.build.srcRootDefault === 'boolean' && pkg.build.srcRootDefault === false) {
|
|
641
|
+
srcRoot = '';
|
|
642
|
+
}
|
|
643
|
+
|
|
639
644
|
const replaceModule = tools.replaceAll(projectDef, '@module.name@', pkg.folder || pkg.name);
|
|
640
645
|
const replacePath = tools.replaceAll(replaceModule, '@path@', pathBase);
|
|
646
|
+
const replaceSrcRoot = tools.replaceAll(replacePath, '@srcRoot@', srcRoot);
|
|
641
647
|
|
|
642
|
-
jsonFile['projects'][pkg.name] = JSON.parse(
|
|
648
|
+
jsonFile['projects'][pkg.name] = JSON.parse(replaceSrcRoot);
|
|
643
649
|
|
|
644
650
|
tools.writeJsonFileSync(file, jsonFile);
|
|
645
651
|
}
|
|
@@ -8,6 +8,8 @@ const configUtils = require('../config/config-utils');
|
|
|
8
8
|
|
|
9
9
|
const tools = require('../../utils/tools');
|
|
10
10
|
|
|
11
|
+
const { skipPull } = tools.getArgs();
|
|
12
|
+
|
|
11
13
|
module.exports.sync = () => {
|
|
12
14
|
return Promise.resolve()
|
|
13
15
|
.then(() => {
|
|
@@ -22,8 +24,10 @@ module.exports.sync = () => {
|
|
|
22
24
|
tools.logSuccess();
|
|
23
25
|
})
|
|
24
26
|
.then(() => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
if (!skipPull) {
|
|
28
|
+
tools.logInfo(`Pulling root folder ...`);
|
|
29
|
+
return execa.shellSync(`git pull`, { cwd: path.join(process.cwd()), stdio: 'inherit' });
|
|
30
|
+
}
|
|
27
31
|
})
|
|
28
32
|
.then(() => {
|
|
29
33
|
tools.logSuccess();
|