@eui/tools 4.15.3 → 4.15.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/scripts/csdr/config/angular.js +9 -4
- package/scripts/csdr/release/package/common.js +2 -0
- package/scripts/csdr/release/package/release-package.js +9 -1
- package/scripts/utils/pre-build/elements.js +2 -2
- package/scripts/utils/pre-build/projects.js +2 -3
- package/scripts/utils/pre-build/translations/elements.js +6 -2
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.15.
|
|
1
|
+
4.15.7
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## 4.15.7 (2021-09-16)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* keep the default openid-login-config.json file for replacement of dynamic assets/config env files - EUI-2999 [EUI-2999](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-2999) ([a1ddc333](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a1ddc333ec413f4cbbb4e59d8f119d106f5b307d))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 4.15.6 (2021-09-14)
|
|
11
|
+
|
|
12
|
+
##### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* no commits metadata found when exception thrown no valid issues found - EUI-2999 [EUI-2999](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-2999) ([b5929a6c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b5929a6c0639d2eb1edd27cfc887ee3a9a850562))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
19
|
+
## 4.15.5 (2021-09-07)
|
|
20
|
+
|
|
21
|
+
##### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **other:**
|
|
24
|
+
* non src lib adapted tsconfig.build generated files - EUI-2999 [EUI-2999](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-2999) ([9936245f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9936245f7f969951d026bbcb779a713e2541558d))
|
|
25
|
+
|
|
26
|
+
* * *
|
|
27
|
+
* * *
|
|
28
|
+
## 4.15.4 (2021-08-18)
|
|
29
|
+
|
|
30
|
+
##### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **other:**
|
|
33
|
+
* issue when build-all packages with elements inside package group - EUI-2999 [EUI-2999](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-2999) ([799cbd8c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/799cbd8c4d9732c9eb7021e48141b53ff0a771b5))
|
|
34
|
+
|
|
35
|
+
* * *
|
|
36
|
+
* * *
|
|
1
37
|
## 4.15.3 (2021-08-11)
|
|
2
38
|
|
|
3
39
|
##### Chores
|
package/package.json
CHANGED
|
@@ -754,16 +754,21 @@ module.exports.registerModulePaths = (pkg, isReset) => {
|
|
|
754
754
|
}
|
|
755
755
|
jsonFileDev['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/src`];
|
|
756
756
|
jsonFileDev['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/src`];
|
|
757
|
+
jsonFileBuild['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
758
|
+
jsonFileBuild['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
759
|
+
jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
760
|
+
jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
761
|
+
|
|
757
762
|
} else {
|
|
758
763
|
tools.logInfo(`${pkg.paths.pkgSrc} does not exist => pointing to root folder`);
|
|
759
764
|
jsonFileDev['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}`];
|
|
760
765
|
jsonFileDev['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/*`];
|
|
766
|
+
jsonFileBuild['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
767
|
+
jsonFileBuild['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/dist/*`];
|
|
768
|
+
jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
769
|
+
jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/dist/*`];
|
|
761
770
|
}
|
|
762
771
|
|
|
763
|
-
jsonFileBuild['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
764
|
-
jsonFileBuild['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
765
|
-
jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
766
|
-
jsonFileBuildSpec['compilerOptions']['paths'][`${pkg.npmPkgScope}/${pkg.npmPkgName}/*`] = [`${pathBase}/${pkg.folder || pkg.name}/dist`];
|
|
767
772
|
|
|
768
773
|
tools.writeJsonFileSync(fileDev, jsonFileDev);
|
|
769
774
|
tools.writeJsonFileSync(fileBuild, jsonFileBuild);
|
|
@@ -381,6 +381,8 @@ module.exports.sendSuccessNotification = (pkg, version, pkgMetadata) => {
|
|
|
381
381
|
|
|
382
382
|
|
|
383
383
|
module.exports.sendErrorNotification = (pkg, exception, pkgMetadata) => {
|
|
384
|
+
console.log(pkgMetadata);
|
|
385
|
+
|
|
384
386
|
return Promise.resolve()
|
|
385
387
|
.then(() => {
|
|
386
388
|
utils.tools.logTitle('ERROR !!!!! an unexpected error occured....');
|
|
@@ -8,6 +8,7 @@ const utils = require('../../../utils');
|
|
|
8
8
|
|
|
9
9
|
// CSDR RELATED
|
|
10
10
|
const configUtils = require('../../config/config-utils');
|
|
11
|
+
const metadataUtils = require('../../metadata/metadata-utils');
|
|
11
12
|
|
|
12
13
|
// INNER MODULES
|
|
13
14
|
const innerCommon = require('./common');
|
|
@@ -47,12 +48,19 @@ module.exports.run = () => {
|
|
|
47
48
|
return innerCommon.preReleaseChecks(pkg);
|
|
48
49
|
})
|
|
49
50
|
|
|
51
|
+
// FETCHING COMMITS METADATA
|
|
52
|
+
.then(() => {
|
|
53
|
+
return metadataUtils.commit.getMetadata(pkg);
|
|
54
|
+
})
|
|
55
|
+
.then((metadata) => {
|
|
56
|
+
pkgMetadata = metadata;
|
|
57
|
+
})
|
|
58
|
+
|
|
50
59
|
// COMMIT METADATA CHECKS
|
|
51
60
|
.then(() => {
|
|
52
61
|
return innerCommon.commitMetadataChecks(pkg);
|
|
53
62
|
})
|
|
54
63
|
.then((metadata) => {
|
|
55
|
-
// storing commitMetadata for later use
|
|
56
64
|
pkgMetadata = metadata;
|
|
57
65
|
})
|
|
58
66
|
|
|
@@ -27,9 +27,9 @@ module.exports.preBuild = (pkg, build = false) => {
|
|
|
27
27
|
if (pkg.build && pkg.build.compiledTranslations) {
|
|
28
28
|
const scopes = pkg.build.translationScopes;
|
|
29
29
|
if (scopes) {
|
|
30
|
-
return translationUtils.elements.generate(scopes);
|
|
30
|
+
return translationUtils.elements.generate(scopes, pkg);
|
|
31
31
|
} else {
|
|
32
|
-
return translationUtils.elements.generate();
|
|
32
|
+
return translationUtils.elements.generate(pkg);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
} else {
|
|
@@ -131,9 +131,8 @@ module.exports.injectAppConfig = (project, configEnvTarget, build) => {
|
|
|
131
131
|
if (build) {
|
|
132
132
|
rootTargetFolder = 'dist';
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
tools.
|
|
136
|
-
tools.copy(envFilePath, path.join(project.paths.angularPath, `${rootTargetFolder}/assets/config/env-json-config.json`));
|
|
134
|
+
tools.logInfo(`Replacing default ${rootTargetFolder}/assets/openid-login-config.json file by ${envFilePath} content`);
|
|
135
|
+
tools.copy(envFilePath, path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login-config.json`));
|
|
137
136
|
|
|
138
137
|
tools.logSuccess();
|
|
139
138
|
})
|
|
@@ -13,11 +13,15 @@ const configUtils = require('../../../csdr/config/config-utils');
|
|
|
13
13
|
const { dryRun, scopes } = tools.getArgs();
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
module.exports.generate = (inputScopes = '') => {
|
|
16
|
+
module.exports.generate = (inputScopes = '', inputPkg) => {
|
|
17
17
|
|
|
18
18
|
tools.logTitle('Generating translations...');
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
let pkg = inputPkg;
|
|
21
|
+
if (!pkg) {
|
|
22
|
+
pkg = configUtils.packages.getPackage();
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
const rootFolder = pkg.paths.pkgRootDirectory;
|
|
22
26
|
const rootSrcFolder = path.join(rootFolder,'src');
|
|
23
27
|
const destFolder = path.join(rootSrcFolder, 'assets/i18n-compiled');
|