@eui/tools 6.2.42 → 6.2.44

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.
@@ -1 +1 @@
1
- 6.2.42
1
+ 6.2.44
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.2.44 (2022-12-08)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * appConfig mapping in csdr-integration MWP-9104 [MWP-9104](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9104) ([2272743d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/2272743df39719485dca3add3e3528466cb67611))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.2.43 (2022-12-02)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * added post-build script execution on sub-styles package - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([9320f1f1](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9320f1f12366b101a4c3d88ae3d6b3a941666e3b))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.2.42 (2022-12-01)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.42",
3
+ "version": "6.2.44",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -1,20 +1,10 @@
1
1
  import { GLOBAL } from './global';
2
2
  import { MODULES } from './modules';
3
- import { EuiAppConfig, LogLevel, ConsoleAppender, LogConfig } from '@eui/core';
4
3
 
5
- /**
6
- * Log Configuration
7
- */
8
- const logConfig: LogConfig = {
9
- logLevel: LogLevel.ALL,
10
- logAppenders: [{
11
- type: ConsoleAppender,
12
- prefixFormat: '[{level}]',
13
- }],
14
- };
4
+ import { EuiAppConfig } from '@eui/core';
5
+ import { configMapping } from '@csdr/integration/element';
15
6
 
16
- export const appConfig: EuiAppConfig = {
7
+ export const appConfig: EuiAppConfig = configMapping({
17
8
  global: GLOBAL,
18
9
  modules: MODULES,
19
- log: logConfig,
20
- };
10
+ });
@@ -1,3 +1,3 @@
1
1
  import { ModulesConfig } from '@eui/core';
2
2
 
3
- export const MODULES: ModulesConfig = JSON.parse(JSON.stringify(window['PROVIDERS']['CONFIG_TOKEN'].modules));
3
+ export const MODULES: ModulesConfig = {};
@@ -1,13 +1,15 @@
1
- import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
2
-
3
- /**
4
- * import and register locales (currently MWP uses only French and english)
5
- */
6
1
  import { registerLocaleData } from '@angular/common';
2
+
7
3
  import localeEn from '@angular/common/locales/en';
8
4
  import localeEnExtra from '@angular/common/locales/extra/en';
9
5
  import localeFr from '@angular/common/locales/fr';
10
6
  import localeFrExtra from '@angular/common/locales/extra/fr';
7
+
8
+ import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
9
+
10
+ /**
11
+ * import and register locales (currently MWP uses only French and English)
12
+ */
11
13
  registerLocaleData(localeEn, 'en', localeEnExtra);
12
14
  registerLocaleData(localeFr, 'fr', localeFrExtra);
13
15
 
@@ -10,7 +10,7 @@ const tools = require('../../tools');
10
10
  const notificationUtils = require('../../notification/notification-utils');
11
11
 
12
12
  // FETCH ARGS
13
- let { skipCompile } = tools.getArgs();
13
+ let { skipCompile, dryRun } = tools.getArgs();
14
14
 
15
15
 
16
16
  const compileSassFileNodeSass = (folder, filename, isNodeSassTildeImporterActive) => {
@@ -264,6 +264,15 @@ module.exports.build = (pkg) => {
264
264
  package: pkg
265
265
  })
266
266
  })
267
+ .then(() => {
268
+ tools.logInfo('Executing post-build.js script if present in package');
269
+ const postbuildScript = path.join(pkg.paths.root, 'post-build.js');
270
+ if (!dryRun && tools.isFileExists(postbuildScript)) {
271
+ return tools.runScript(`node ${postbuildScript}`);
272
+ } else {
273
+ tools.logInfo('DRY-RUN OR post-build.js script not found in package root --- SKIPPING');
274
+ }
275
+ })
267
276
 
268
277
  .catch((e) => {
269
278
  throw e;