@eui/tools 5.0.0-rc.4 → 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 +41 -0
- package/package.json +1 -1
- package/sandbox.js +3 -2
- package/scripts/csdr/config/angular.js +33 -13
- package/scripts/csdr/install/common.js +7 -7
- 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,44 @@
|
|
|
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
|
+
* * *
|
|
15
|
+
## 5.0.0-rc.7 (2021-10-21)
|
|
16
|
+
|
|
17
|
+
##### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **other:**
|
|
20
|
+
* dependencies composite fetch on parent package - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([78f56a43](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/78f56a43d26068fad835074d4e07e53c8b9d8384))
|
|
21
|
+
|
|
22
|
+
* * *
|
|
23
|
+
* * *
|
|
24
|
+
## 5.0.0-rc.6 (2021-10-11)
|
|
25
|
+
|
|
26
|
+
##### Chores
|
|
27
|
+
|
|
28
|
+
* **other:**
|
|
29
|
+
* adapted builder and remove ngx-build-plus - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([4c9377f3](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/4c9377f3e9269c640b8cec5278735eab2cdb48f7))
|
|
30
|
+
|
|
31
|
+
* * *
|
|
32
|
+
* * *
|
|
33
|
+
## 5.0.0-rc.5 (2021-09-21)
|
|
34
|
+
|
|
35
|
+
##### Chores
|
|
36
|
+
|
|
37
|
+
* **other:**
|
|
38
|
+
* added development mode in angular generated config - EUI-4106 [EUI-4106](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4106) ([a12920db](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a12920db9c9e48eea7be4b33c1a1ebaac33c19a8))
|
|
39
|
+
|
|
40
|
+
* * *
|
|
41
|
+
* * *
|
|
1
42
|
## 5.0.0-rc.4 (2021-09-20)
|
|
2
43
|
|
|
3
44
|
##### 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
|
|
|
@@ -244,13 +244,16 @@ const angularProjectDefFullSkeleton = {
|
|
|
244
244
|
"projectType": "application",
|
|
245
245
|
"prefix": "app",
|
|
246
246
|
"schematics": {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
"@schematics/angular:component": {
|
|
248
|
+
"style": "scss"
|
|
249
|
+
},
|
|
250
|
+
"@schematics/angular:application": {
|
|
251
|
+
"strict": true
|
|
252
|
+
}
|
|
250
253
|
},
|
|
251
254
|
"architect": {
|
|
252
255
|
"build": {
|
|
253
|
-
"builder": "
|
|
256
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
254
257
|
"options": {
|
|
255
258
|
"outputPath": "apps/@project.name@/dist",
|
|
256
259
|
"index": "apps/@project.name@/src/index.html",
|
|
@@ -280,7 +283,6 @@ const angularProjectDefFullSkeleton = {
|
|
|
280
283
|
"optimization": false,
|
|
281
284
|
"outputHashing": "all",
|
|
282
285
|
"sourceMap": false,
|
|
283
|
-
"extractCss": true,
|
|
284
286
|
"namedChunks": true,
|
|
285
287
|
"aot": true,
|
|
286
288
|
"extractLicenses": true,
|
|
@@ -311,7 +313,6 @@ const angularProjectDefFullSkeleton = {
|
|
|
311
313
|
},
|
|
312
314
|
"outputHashing": "all",
|
|
313
315
|
"sourceMap": false,
|
|
314
|
-
"extractCss": true,
|
|
315
316
|
"namedChunks": true,
|
|
316
317
|
"aot": true,
|
|
317
318
|
"extractLicenses": true,
|
|
@@ -324,8 +325,17 @@ const angularProjectDefFullSkeleton = {
|
|
|
324
325
|
"maximumError": "6mb"
|
|
325
326
|
}
|
|
326
327
|
]
|
|
328
|
+
},
|
|
329
|
+
"development": {
|
|
330
|
+
"buildOptimizer": false,
|
|
331
|
+
"optimization": false,
|
|
332
|
+
"vendorChunk": true,
|
|
333
|
+
"extractLicenses": false,
|
|
334
|
+
"sourceMap": true,
|
|
335
|
+
"namedChunks": true
|
|
327
336
|
}
|
|
328
|
-
}
|
|
337
|
+
},
|
|
338
|
+
"defaultConfiguration": "production"
|
|
329
339
|
},
|
|
330
340
|
"serve": {
|
|
331
341
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
@@ -339,8 +349,12 @@ const angularProjectDefFullSkeleton = {
|
|
|
339
349
|
},
|
|
340
350
|
"production": {
|
|
341
351
|
"browserTarget": "@project.name@:build:production"
|
|
352
|
+
},
|
|
353
|
+
"development": {
|
|
354
|
+
"browserTarget": "@project.name@:build:development"
|
|
342
355
|
}
|
|
343
|
-
}
|
|
356
|
+
},
|
|
357
|
+
"defaultConfiguration": "development"
|
|
344
358
|
}
|
|
345
359
|
}
|
|
346
360
|
};
|
|
@@ -421,7 +435,7 @@ const angularProjectDefConfigurationOptimized = {
|
|
|
421
435
|
|
|
422
436
|
const angularPackageDef = {
|
|
423
437
|
"root": "@path@/@module.name@",
|
|
424
|
-
"sourceRoot": "@path@/@module.name
|
|
438
|
+
"sourceRoot": "@path@/@module.name@@srcRoot@",
|
|
425
439
|
"projectType": "library",
|
|
426
440
|
"prefix": "lib",
|
|
427
441
|
"architect": {
|
|
@@ -440,7 +454,7 @@ const angularPackageDef = {
|
|
|
440
454
|
"test": {
|
|
441
455
|
"builder": "@angular-devkit/build-angular:karma",
|
|
442
456
|
"options": {
|
|
443
|
-
"main": "@path@/@module.name@/
|
|
457
|
+
"main": "@path@/@module.name@@srcRoot@/testing/test.ts",
|
|
444
458
|
"tsConfig": "@path@/@module.name@/tsconfig.spec.json",
|
|
445
459
|
"karmaConfig": "@path@/@module.name@/karma.conf.js"
|
|
446
460
|
}
|
|
@@ -451,7 +465,7 @@ const angularPackageDef = {
|
|
|
451
465
|
|
|
452
466
|
const angularPackageDefv13 = {
|
|
453
467
|
"root": "@path@/@module.name@",
|
|
454
|
-
"sourceRoot": "@path@/@module.name
|
|
468
|
+
"sourceRoot": "@path@/@module.name@@srcRoot@",
|
|
455
469
|
"projectType": "library",
|
|
456
470
|
"prefix": "lib",
|
|
457
471
|
"architect": {
|
|
@@ -470,7 +484,7 @@ const angularPackageDefv13 = {
|
|
|
470
484
|
"test": {
|
|
471
485
|
"builder": "@angular-devkit/build-angular:karma",
|
|
472
486
|
"options": {
|
|
473
|
-
"main": "@path@/@module.name@/
|
|
487
|
+
"main": "@path@/@module.name@@srcRoot@/testing/test.ts",
|
|
474
488
|
"tsConfig": "@path@/@module.name@/tsconfig.spec.json",
|
|
475
489
|
"karmaConfig": "@path@/@module.name@/karma.conf.js"
|
|
476
490
|
}
|
|
@@ -622,10 +636,16 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
|
|
|
622
636
|
projectDef = JSON.stringify(angularPackageDefv13);
|
|
623
637
|
}
|
|
624
638
|
|
|
639
|
+
let srcRoot = '/src';
|
|
640
|
+
if (pkg.build && typeof pkg.build.srcRootDefault === 'boolean' && pkg.build.srcRootDefault === false) {
|
|
641
|
+
srcRoot = '';
|
|
642
|
+
}
|
|
643
|
+
|
|
625
644
|
const replaceModule = tools.replaceAll(projectDef, '@module.name@', pkg.folder || pkg.name);
|
|
626
645
|
const replacePath = tools.replaceAll(replaceModule, '@path@', pathBase);
|
|
646
|
+
const replaceSrcRoot = tools.replaceAll(replacePath, '@srcRoot@', srcRoot);
|
|
627
647
|
|
|
628
|
-
jsonFile['projects'][pkg.name] = JSON.parse(
|
|
648
|
+
jsonFile['projects'][pkg.name] = JSON.parse(replaceSrcRoot);
|
|
629
649
|
|
|
630
650
|
tools.writeJsonFileSync(file, jsonFile);
|
|
631
651
|
}
|
|
@@ -218,14 +218,14 @@ const getLocalPackagesDeps = () => {
|
|
|
218
218
|
const getLocalPackageCompositeDeps = (pkg) => {
|
|
219
219
|
let pkgJsonFile;
|
|
220
220
|
|
|
221
|
-
if (pkg.
|
|
222
|
-
|
|
221
|
+
if (pkg.child) {
|
|
222
|
+
pkgJsonFile = path.join(process.cwd(), 'packages', pkg.parentPkg, 'packages', pkg.folder || pkg.name, 'dependencies-composite.json');
|
|
223
223
|
} else {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}
|
|
224
|
+
pkgJsonFile = path.join(process.cwd(), 'packages', pkg.name, 'dependencies-composite.json');
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (tools.isFileExists(pkgJsonFile)) {
|
|
228
|
+
console.log(`found ${pkgJsonFile}, parsing...`);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
return tools.getJsonFileContent(pkgJsonFile) || {};
|
|
@@ -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();
|