@eui/tools 6.2.25 → 6.2.26

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.25
1
+ 6.2.26
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.2.26 (2022-11-14)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * adapted remote post build/serve concat for v10 v15 - MWP-9010 [MWP-9010](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9010) ([0cfce97e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0cfce97e398c4fed36d3db51a0d276ffab3dbc16))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.2.25 (2022-11-14)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.25",
3
+ "version": "6.2.26",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -194,9 +194,7 @@ module.exports.postBuild = (pkg, version) => {
194
194
  })
195
195
 
196
196
  .then(() => {
197
- // if (euiVersionNumber >= 15) {
198
- return remotesUtils.concatFiles(path.join(pkg.paths.dist, 'bundles'));
199
- // }
197
+ return remotesUtils.concatFiles(path.join(pkg.paths.dist, 'bundles'), euiVersionNumber);
200
198
  })
201
199
 
202
200
  .then(() => {
@@ -8,7 +8,7 @@ const concat = require('concat');
8
8
  const tools = require('../tools');
9
9
 
10
10
 
11
- module.exports.concatFiles = (workingPath) => {
11
+ module.exports.concatFiles = (workingPath, euiVersionNumber = 10) => {
12
12
  return Promise.resolve()
13
13
  .then(() => {
14
14
  tools.logInfo('Concatening JS files to main.js');
@@ -16,7 +16,7 @@ module.exports.concatFiles = (workingPath) => {
16
16
  tools.move(path.join(workingPath, 'main.js'), path.join(workingPath, 'main-old.js'));
17
17
 
18
18
  const files = [
19
- 'runtime.js',
19
+ ...(euiVersionNumber >= 15 ? ['runtime.js'] : []),
20
20
  'polyfills.js',
21
21
  'scripts.js',
22
22
  'main-old.js'
@@ -92,9 +92,7 @@ module.exports.serve = (remote = false) => {
92
92
  })
93
93
 
94
94
  .then(() => {
95
- // if (euiVersionNumber >= 15) {
96
- return remotesUtils.concatFiles(destPath);
97
- // }
95
+ return remotesUtils.concatFiles(destPath, euiVersionNumber);
98
96
  })
99
97
 
100
98
  .then(() => {
@@ -102,9 +100,7 @@ module.exports.serve = (remote = false) => {
102
100
  })
103
101
 
104
102
  .then(() => {
105
- // if (euiVersionNumber >= 15) {
106
- return remotesUtils.emptyIndexHtml(destPath);
107
- // }
103
+ return remotesUtils.emptyIndexHtml(destPath);
108
104
  })
109
105
 
110
106
  .catch((e) => {