@eui/tools 6.15.14 → 6.15.15

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.15.14
1
+ 6.15.15
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.15.15 (2024-02-19)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adds serve-path angular CLI support - EUI-8867 [EUI-8867](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-8867) ([d58dba31](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d58dba3118651fdf040fbd52ed0a361fb38a4847))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.15.14 (2024-02-06)
2
11
 
3
12
  ##### Refactors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.15.14",
3
+ "version": "6.15.15",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -236,6 +236,19 @@ module.exports.getBaseHref = (prj, version, providedBaseHref) => {
236
236
  return null;
237
237
  };
238
238
 
239
+ module.exports.getServePath = (prj, version, providedServePath) => {
240
+ tools.logInfo('Constructing servePath:');
241
+ tools.logInfo('provided args: ');
242
+ console.log(version, providedServePath);
243
+
244
+ if (providedServePath) {
245
+ tools.logInfo(`---> provided servePath: ${providedServePath}`);
246
+ return providedServePath;
247
+ }
248
+
249
+ return null;
250
+ };
251
+
239
252
  const getEuiVersionCore = (project) => {
240
253
  let version;
241
254
 
@@ -39,6 +39,7 @@ module.exports.angular = (
39
39
  skipCompile,
40
40
  configuration,
41
41
  baseHref,
42
+ servePath,
42
43
  watch,
43
44
  dryRun,
44
45
  maxSpaceSize,
@@ -104,9 +105,12 @@ module.exports.angular = (
104
105
  if (currentProject.build.sourceMap) {
105
106
  sourceMap = true;
106
107
  }
107
- // getting baseHref from project config, dynamic or staticly defined
108
+ // getting baseHref from project config, dynamic or statically defined
108
109
  baseHref = configUtils.projects.getBaseHref(currentProject, version, baseHref);
109
110
  tools.logInfo(`base-href found : ${baseHref}`);
111
+ // getting servePath from project config, dynamic or statically defined
112
+ servePath = configUtils.projects.getServePath(currentProject, version, servePath);
113
+ tools.logInfo(`serve-path found : ${servePath}`);
110
114
  }
111
115
 
112
116
  return Promise.resolve()
@@ -249,6 +253,10 @@ module.exports.angular = (
249
253
  args.push(`--base-href=${baseHref}`);
250
254
  }
251
255
 
256
+ if (servePath) {
257
+ args.push(`--serve-path=${servePath}`);
258
+ }
259
+
252
260
  if (deployUrl) {
253
261
  args.push(`--deploy-url=${deployUrl}`);
254
262
  }
@@ -338,10 +346,11 @@ const generateProjectDistributionList = module.exports.generateProjectDistributi
338
346
 
339
347
  tools.logInfo(`Current project version : ${version}`);
340
348
  const baseHref = configUtils.projects.getBaseHref(project, version);
349
+ const servePath = configUtils.projects.getServePath(project, version);
341
350
 
342
351
  tools.logInfo(`Distribution folder : ${baseHref}`);
343
352
 
344
- // getting buckeName if provided
353
+ // getting bucketName if provided
345
354
  let bucketName;
346
355
  if (project.build && project.build.distribution) {
347
356
  // PROD bucket is taken as a default
@@ -10,7 +10,7 @@ const configUtils = require('../../../csdr/config/config-utils');
10
10
  const preBuildUtils = require('../../pre-build/pre-build-utils');
11
11
  const remotesUtils = require('../../remotes/remotes-utils');
12
12
 
13
- let { configuration, baseHref, dryRun, statsJson, sourceMap, build, skipCompile } = tools.getArgs();
13
+ let { configuration, baseHref, servePath, dryRun, statsJson, sourceMap, build, skipCompile } = tools.getArgs();
14
14
 
15
15
 
16
16
  module.exports.build = (pkg, isMaster) => {
@@ -55,6 +55,10 @@ module.exports.build = (pkg, isMaster) => {
55
55
  args.push(`--base-href=${baseHref}`);
56
56
  }
57
57
 
58
+ if (servePath) {
59
+ args.push(`--serve-path=${servePath}`);
60
+ }
61
+
58
62
  if (versionNumber <= 10) {
59
63
  const webpackExtraFile = path.join(pkg.paths.root, 'webpack.extra.js');
60
64
  if (tools.isFileExists(webpackExtraFile)) {
@@ -10,7 +10,7 @@ const configUtils = require('../../csdr/config/config-utils');
10
10
 
11
11
  module.exports.serve = () => {
12
12
 
13
- let { configuration, baseHref, host, proxyConfig, maxSpaceSize, port, disableHostCheck, open, debug, configEnvTarget } = tools.getArgs();
13
+ let { configuration, baseHref, servePath, host, proxyConfig, maxSpaceSize, port, disableHostCheck, open, debug, configEnvTarget } = tools.getArgs();
14
14
 
15
15
  const prj = configUtils.projects.getProject();
16
16
 
@@ -61,6 +61,10 @@ module.exports.serve = () => {
61
61
  args.push(`--base-href=${baseHref}`);
62
62
  }
63
63
 
64
+ if (servePath) {
65
+ args.push(`--serve-path=${servePath}`);
66
+ }
67
+
64
68
  if (host) {
65
69
  args.push(`--host=${host}`);
66
70
  }
@@ -12,7 +12,7 @@ const configUtils = require('../../csdr/config/config-utils');
12
12
 
13
13
  module.exports.serve = (remote = false) => {
14
14
 
15
- let { project, configuration, baseHref, host, proxyConfig, maxSpaceSize, port } = tools.getArgs();
15
+ let { project, configuration, baseHref, servePath, host, proxyConfig, maxSpaceSize, port } = tools.getArgs();
16
16
 
17
17
  let pkg;
18
18
  if (remote) {