@eui/tools 6.20.15 → 6.20.17

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.20.15
1
+ 6.20.17
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.20.17 (2024-08-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * standalone remote post-build adaptations for v18 - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([964c8830](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/964c883070201f60dc240ad12c7f228f8eb27790))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.20.16 (2024-08-09)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * wrong function call for remote build - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([bb373ace](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/bb373ace2bab1372e05fe89c8a2f49f152ef7c69))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.20.15 (2024-08-09)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.20.15",
3
+ "version": "6.20.17",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -74,7 +74,7 @@ const cloneRemotesConfigStandalone = module.exports.cloneRemotesConfigStandalone
74
74
 
75
75
 
76
76
 
77
- module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfig = true, standalone = false) => {
77
+ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfigFlag = true, standalone = false) => {
78
78
  tools.logTitle('Generating virtual remote');
79
79
 
80
80
  let remote, remotePath, remoteSrcPath, remoteSkeletonRootPath, remoteSkeletonPath;
@@ -87,7 +87,7 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemotesConfig = true, s
87
87
  return Promise.resolve()
88
88
  // clone remotes config if first init
89
89
  .then(() => {
90
- if (cloneRemotesConfig) {
90
+ if (cloneRemotesConfigFlag) {
91
91
  if (standalone) {
92
92
  return cloneRemotesConfigStandalone();
93
93
  } else {
@@ -11,7 +11,6 @@ const initUtils = require('../../init/init-utils');
11
11
  const configUtils = require('../../config/config-utils');
12
12
  const metadataUtils = require('../../metadata/metadata-utils');
13
13
  const installUtils = require('../../install/install-utils');
14
- const versionUtils = require('../../version/version-utils');
15
14
 
16
15
 
17
16
  // INNER MODULES
@@ -20,8 +19,7 @@ const innerCommon = require('./common');
20
19
  // LOCAL TEST :
21
20
  // - symlink eUI tools sources to node_modules of standalone pkg folder node_modules to test
22
21
  // - execute this command on the standalone pkg folder :
23
- // npx @eui/tools release-remote-standalone --remoteName zzz-test-remote-eui18 --envTarget DEV --dryRun --debug --debugNotification --debugGitUpdates --skipPublish
24
-
22
+ // npx @eui/tools release-remote-standalone --remoteName zzz-test-remote-eui18 --envTarget DEV --debug --debugNotification --debugGitUpdates --skipPublish --skipGitUpdates --skipNotification
25
23
 
26
24
 
27
25
  module.exports.run = () => {
@@ -118,7 +118,11 @@ module.exports.postBuild = (pkg, version) => {
118
118
  tools.logTitle('ELEMENT POST build');
119
119
  tools.logInfo('Copying dist to bundles folder');
120
120
  tools.mkdir(path.join(pkg.paths.dist, 'bundles'));
121
- return tools.copydir(path.join(pkg.paths.dist), path.join(pkg.paths.dist, 'bundles'));
121
+ if (euiVersionNumber >= 18) {
122
+ tools.copydirFiles(path.join(pkg.paths.dist, 'browser'), path.join(pkg.paths.dist));
123
+ tools.remove(path.join(pkg.paths.dist, 'browser'));
124
+ }
125
+ tools.copydir(path.join(pkg.paths.dist), path.join(pkg.paths.dist, 'bundles'));
122
126
  })
123
127
 
124
128
  .then(() => {
@@ -6,7 +6,7 @@ const apiUtils = require('../api-utils');
6
6
  const configUtils = require('../../csdr/config/config-utils');
7
7
 
8
8
  // ARGS
9
- const { dryRun, debug, debugNotification } = tools.getArgs();
9
+ const { dryRun, debug, debugNotification, skipNotification } = tools.getArgs();
10
10
 
11
11
 
12
12
  const getChannelHook = module.exports.getChannelHook = (channelName) => {
@@ -206,7 +206,13 @@ module.exports.sendMessage = (config, messageContent, standalone = false) => {
206
206
  host = configUtils.global.getConfigOptions().MSTEAMS_HOST;
207
207
  }
208
208
 
209
- return apiUtils.post(host, channelHook, JSON.parse(JSON.stringify(payload, null, 2)));
209
+ if (dryRun || skipNotification) {
210
+ tools.logInfo('DRY-RUN or skipNotification active...skipping');
211
+ return Promise.resolve();
212
+ } else {
213
+ return apiUtils.post(host, channelHook, JSON.parse(JSON.stringify(payload, null, 2)));
214
+ }
215
+
210
216
  })
211
217
  .then((response) => {
212
218
  console.log(response);