@eui/tools 6.2.39 → 6.2.41

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.39
1
+ 6.2.41
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.2.41 (2022-11-28)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **cli:**
6
+ * backend wrong parameters call to function - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([9a0b53df](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9a0b53df1fd1a7fcc297c6bd94a39f97aa325dd1))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.2.40 (2022-11-23)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * added development config for v15 virtual remotes - MWP-9039 [MWP-9039](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9039) ([eab8fa12](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/eab8fa12fbac6f053952631e9d3503b6631a5d20))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.2.39 (2022-11-23)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.39",
3
+ "version": "6.2.41",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -52,7 +52,7 @@ module.exports.generate = () => {
52
52
  return buildFrontend.generate(answers);
53
53
 
54
54
  } else if (answers.pkgType === constants.CONFIG_OPTIONS.pkgType.BACKEND) {
55
- return buildBackend.generate(answers);
55
+ return buildBackend.generate(answers.pkgName, answers.pkgScope, answers.pkgGroupId);
56
56
  }
57
57
  })
58
58
 
@@ -49,6 +49,14 @@
49
49
  ]
50
50
  },
51
51
  "configurations": {
52
+ "development": {
53
+ "buildOptimizer": false,
54
+ "optimization": false,
55
+ "vendorChunk": true,
56
+ "extractLicenses": false,
57
+ "sourceMap": true,
58
+ "namedChunks": true
59
+ },
52
60
  "production": {
53
61
  "fileReplacements": [
54
62
  {
@@ -7,6 +7,7 @@ const tools = require('../tools');
7
7
  const translationUtils = require('./translations/translation-utils');
8
8
  const configUtils = require('../../csdr/config/config-utils');
9
9
  const injectionUtils = require('./injection/injection-utils');
10
+ const initUtils = require('../../csdr/init/init-utils');
10
11
 
11
12
  module.exports.preBuild = (pkg, build = false) => {
12
13
  return Promise.resolve()
@@ -14,6 +15,12 @@ module.exports.preBuild = (pkg, build = false) => {
14
15
  tools.logTitle('PRE-BUILD : preparing the element...')
15
16
  })
16
17
 
18
+ .then(() => {
19
+ if (pkg.virtual) {
20
+ return initUtils.remotes.generateVirtualRemote(pkg.name, false);
21
+ }
22
+ })
23
+
17
24
  .then(() => {
18
25
  tools.logInfo('Registering angular project definition...');
19
26
  return configUtils.angular.registerAngularProjectDef(pkg, build, true);
@@ -67,15 +67,20 @@ module.exports.serve = (remote = false) => {
67
67
  if (euiVersionNumber <= 10) {
68
68
  args.push(`--outputPath=${destPath}`);
69
69
  args.push(`--single-bundle=true`);
70
+
71
+ if (!configuration) {
72
+ configuration = 'production';
73
+ }
70
74
  } else {
75
+ if (!configuration) {
76
+ configuration = 'development';
77
+ }
71
78
  args.push(`--output-path=${destPath}`);
72
79
  }
73
80
 
74
- args.push(`--output-hashing=none`);
81
+ args.push(`--configuration=${configuration}`);
75
82
 
76
- if (configuration) {
77
- args.push(`--configuration=${configuration || 'production'}`);
78
- }
83
+ args.push(`--output-hashing=none`);
79
84
 
80
85
  const webpackExtraFile = path.join(pkg.paths.root, 'webpack.extra.js');
81
86
  if (tools.isFileExists(webpackExtraFile)) {