@eui/tools 6.2.39 → 6.2.40

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.40
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.2.40 (2022-11-23)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * 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))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.2.39 (2022-11-23)
2
11
 
3
12
  ##### 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.40",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -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)) {