@eui/tools 6.20.20 → 6.20.21

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.20
1
+ 6.20.21
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.20.21 (2024-08-12)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted for standalone host build - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([84678f01](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/84678f01882846865c233fc6ff3366cca8793efc))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.20.20 (2024-08-12)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.20.20",
3
+ "version": "6.20.21",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -46,7 +46,7 @@ const getProjectPaths = (prj) => {
46
46
 
47
47
  let installPath = process.cwd();
48
48
  let nodeModulesPath = path.join(process.cwd(), 'node_modules');
49
- if (prj.standalone) {
49
+ if (prj.standalone && !prj.host) {
50
50
  installPath = path.join(rootPath);
51
51
  nodeModulesPath = path.join(rootPath, 'node_modules');
52
52
  }
@@ -96,6 +96,8 @@ module.exports.getProject = (projectName) => {
96
96
 
97
97
  if (prj) {
98
98
  prj.rootName = projectName;
99
+ prj.csdr = true;
100
+ prj.standalone = false;
99
101
 
100
102
  let prjVirtualSkeleton = {};
101
103
 
@@ -103,6 +105,9 @@ module.exports.getProject = (projectName) => {
103
105
  const { virtualProjectConfig } = require('./config-skeletons');
104
106
  prjVirtualSkeleton = virtualProjectConfig;
105
107
 
108
+ prj.csdr = false;
109
+ prj.standalone = true;
110
+
106
111
  prjVirtualSkeleton.build.translationScopes = prj.scopes;
107
112
  prjVirtualSkeleton.mock.npmPkg = prj.hostPackage;
108
113
  prjVirtualSkeleton.config.npmPkg = prj.hostPackage;
@@ -113,6 +118,8 @@ module.exports.getProject = (projectName) => {
113
118
 
114
119
  if (prj.playground) {
115
120
  prjVirtualSkeleton.externalRootFiles[1].folder = 'app-root-playground';
121
+ } else {
122
+ prjVirtualSkeleton.externalRoutesSources.routesFilenameTemplate = 'route-defs.@env.target@.json';
116
123
  }
117
124
  }
118
125
 
@@ -8,10 +8,12 @@ const innerProjects = require('./projects');
8
8
 
9
9
 
10
10
  module.exports.install = (prj, envTarget) => {
11
+ tools.logInfo('install.buildApp.install');
12
+
11
13
  return Promise.resolve()
12
14
  // checking remotes
13
15
  .then(() => {
14
- if (prj.standalone) {
16
+ if (prj.standalone && !envTarget) {
15
17
  return innerProjects.installDepsStandalone(prj);
16
18
  } else {
17
19
  return innerProjects.installDeps(prj, envTarget);
@@ -16,6 +16,8 @@ const innerCompositeCore = require('./composite-core');
16
16
  const { remotesImport } = tools.getArgs();
17
17
 
18
18
  const getDeps = (module.exports.getDeps = (prj, envTarget) => {
19
+ tools.logInfo('install.projects.getDeps');
20
+
19
21
  return Promise.resolve()
20
22
  .then(() => {
21
23
  return metadataUtils.appEnvs.getMetadata(prj);
@@ -25,6 +27,7 @@ const getDeps = (module.exports.getDeps = (prj, envTarget) => {
25
27
  prj.folder,
26
28
  envsMetadata,
27
29
  envTarget,
30
+ prj.standalone
28
31
  );
29
32
  })
30
33
 
@@ -114,6 +117,8 @@ module.exports.getLocalProjectsFixedDeps = async (_) => {
114
117
  };
115
118
 
116
119
  module.exports.installDeps = (prj, envTarget) => {
120
+ tools.logInfo('install.projects.installDeps');
121
+
117
122
  let finalDeps, compositeDeps;
118
123
 
119
124
  return Promise.resolve()
@@ -16,7 +16,7 @@ const configUtils = require('../../config/config-utils');
16
16
  // LOCAL TEST :
17
17
  // - symlink eUI tools sources to node_modules of standalone pkg folder node_modules to test
18
18
  // - execute this command on the standalone pkg folder :
19
- // npx @eui/tools release-app-standalone --prjName baep-sample-host --euiVersion 18.x --envTarget DEV --configEnvTarget DEV --debug --debugNotification --skipNotification --skipGitUpdates --skipInstall
19
+ // npx @eui/tools release-app-standalone --prjName baep-sample-host --euiVersion 18.x --envTarget DEV --configEnvTarget cdn-dev --debug --debugNotification --skipNotification --skipGitUpdates --skipInstall
20
20
 
21
21
  module.exports.run = () => {
22
22
  const { prjName, euiVersion, envTarget, configEnvTarget } = utils.tools.getArgs();
@@ -151,7 +151,8 @@ module.exports.run = () => {
151
151
  // BUILD ANGULAR APPLICATION
152
152
  .then(() => {
153
153
  return utils.buildApp.angular({
154
- envTarget: envTarget,
154
+ project,
155
+ envTarget,
155
156
  isSnapshot: false,
156
157
  version: newVersion,
157
158
  configEnvTargetin: configEnvTarget,
@@ -718,7 +718,9 @@ module.exports.extractRemotesMetadata = (project) => {
718
718
 
719
719
  return Promise.resolve()
720
720
  .then(() => {
721
- return initUtils.remotes.cloneRemotesConfig();
721
+ if (!project.standalone) {
722
+ return initUtils.remotes.cloneRemotesConfig();
723
+ }
722
724
  })
723
725
 
724
726
  .then(() => {