@eui/tools 4.19.14 → 4.19.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
- 4.19.14
1
+ 4.19.17
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 4.19.17 (2022-03-09)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * generated empty index.html for remote post-build bundle - force remove yarn.lock on package release - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([4f3dd96f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/4f3dd96fa76bd6e31038e189686d97c8d00b6abd))
7
+
8
+ * * *
9
+ * * *
10
+ ## 4.19.16 (2022-03-09)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted openid vs normal injection env config - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([c2a5d816](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c2a5d81641a566bc3b1036644fac1b5a504d0c1e))
16
+
17
+ * * *
18
+ * * *
19
+ ## 4.19.15 (2022-03-07)
20
+
21
+ ##### Chores
22
+
23
+ * **other:**
24
+ * updated resolutions for v13 - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([a76d7cae](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a76d7cae87e74c31665b29f6863163043ae4875a))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 4.19.14 (2022-02-22)
2
29
 
3
30
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.19.14",
3
+ "version": "4.19.17",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -1,15 +1,5 @@
1
1
  {
2
- "lodash": ">=4.17.21",
3
- "handlebars": ">=4.7.7",
4
- "mem": ">=4.3.0 <=8.1.1",
5
- "https-proxy-agent": ">=2.2.3",
6
- "minimatch": ">=3.0.4",
7
- "acorn-globals": ">=6.0.0",
8
- "open": ">=7.0.3",
9
- "dot-prop": "6.0.1",
10
- "serialize-javascript": ">=3.1.0",
11
- "socket.io": ">=2.4.0",
12
- "ssri": ">=8.0.1",
13
2
  "@types/node": ">=14.14.10",
14
- "hosted-git-info": ">=3.0.8"
3
+ "https-proxy-agent": ">=2.2.3",
4
+ "mem": ">=4.3.0 <=8.1.1"
15
5
  }
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  // GLOBAL
4
+ const path = require('path');
4
5
 
5
6
  // UTILS
6
7
  const utils = require('../../../utils');
@@ -81,6 +82,12 @@ module.exports.init = (pkg) => {
81
82
  return metadataUtils.common.cloneMetadataRepo();
82
83
  })
83
84
 
85
+ // REMOVE YARN.LOCK
86
+ .then(() => {
87
+ utils.tools.logInfo('Removing yarn.lock');
88
+ return utils.tools.remove(path.join(process.cwd(), 'yarn.lock'));
89
+ })
90
+
84
91
  .catch((e) => {
85
92
  throw e;
86
93
  })
@@ -179,6 +179,16 @@ module.exports.postBuild = (pkg, version) => {
179
179
  tools.logInfo('Copying package.json to dist');
180
180
  return tools.copy(path.join(pkg.paths.pkgRootDirectory, 'package.json'), path.join(pkg.paths.pkgBuild, 'package.json'));
181
181
  })
182
+ .then(() => {
183
+ try {
184
+ tools.logInfo('Set empty index.html');
185
+ const emptyIndexHtmlFile = path.join(__dirname, 'skeletons', 'elements', 'index.html');
186
+ const outputIndexHmtlFile = path.join(pkg.paths.pkgBuild, 'bundles', 'index.html');
187
+ return tools.copy(emptyIndexHtmlFile, outputIndexHmtlFile);
188
+ } catch(e) {
189
+ console.log(e);
190
+ }
191
+ })
182
192
  .catch((e) => {
183
193
  throw e;
184
194
  })
@@ -0,0 +1,9 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <base href="/">
6
+ </head>
7
+ <body>
8
+ </body>
9
+ </html>
@@ -136,8 +136,15 @@ module.exports.injectAppConfig = (project, configEnvTarget) => {
136
136
  }
137
137
 
138
138
  let rootTargetFolder = 'src';
139
- tools.logInfo(`Replacing default ${rootTargetFolder}/assets/openid-login-config.json file by ${envFilePath} content`);
140
- tools.copy(envFilePath, path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login-config.json`));
139
+ let replacedFile;
140
+
141
+ if ((project.build && project.build.openid) || openid) {
142
+ replacedFile = `${rootTargetFolder}/assets/openid-login-config.json`;
143
+ } else {
144
+ replacedFile = `${rootTargetFolder}/assets/env-json-config.json`;
145
+ }
146
+ tools.logInfo(`Replacing default ${replacedFile} file by ${envFilePath} content`);
147
+ tools.copy(envFilePath, path.join(project.paths.angularPath, `${replacedFile}`));
141
148
 
142
149
  tools.logSuccess();
143
150
  })