@eui/tools 5.3.17 → 5.3.20

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
- 5.3.17
1
+ 5.3.20
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 5.3.20 (2022-06-21)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * adapted pre-build to execute local project pre-build script if present - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([31675fd0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/31675fd08502b56e6222d374a2c9d48973305df2))
7
+
8
+ * * *
9
+ * * *
10
+ ## 5.3.19 (2022-06-21)
11
+
12
+ ##### Bug Fixes
13
+
14
+ * **other:**
15
+ * injection of sources from remote package race condition - MWP-7700 [MWP-7700](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-7700) ([a394124c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a394124ca0124b8dd79004983073fa077a4d7258))
16
+
17
+ * * *
18
+ * * *
19
+ ## 5.3.18 (2022-06-20)
20
+
21
+ ##### Bug Fixes
22
+
23
+ * **other:**
24
+ * set sonar scanner to false on new remote creation - MWP-8187 [MWP-8187](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-8187) ([f52a6d25](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/f52a6d25e3b118a010b18fccbe0b198820b7e774))
25
+
26
+ * * *
27
+ * * *
1
28
  ## 5.3.17 (2022-06-20)
2
29
 
3
30
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.17",
3
+ "version": "5.3.20",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
package/sandbox.js CHANGED
@@ -877,15 +877,6 @@ const versionUtils = require('./scripts/csdr/version/version-utils');
877
877
 
878
878
  Promise.resolve()
879
879
  .then(() => {
880
- const prj = configUtils.projects.getProject('rsp-starter-kit');
880
+ const prj = configUtils.projects.getProject('my-workplace-host-playground');
881
881
  console.log(prj);
882
-
883
- var { branch, dryRun, envTarget, compositeType, configEnvTarget } = tools.getArgs();
884
- console.log(configEnvTarget);
885
-
886
- if (configEnvTarget && typeof (configEnvTarget) === 'boolean') {
887
- configEnvTarget = null;
888
- }
889
-
890
- console.log(configEnvTarget);
891
882
  })
@@ -487,6 +487,7 @@ module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName)
487
487
  "translationScopes": "eui,csdr,cc,mywp",
488
488
  "skipLint": true,
489
489
  "skipTest": true,
490
+ "sonarScanner": false,
490
491
  "envTargetActive": true
491
492
  },
492
493
  "release": {
@@ -110,7 +110,7 @@ module.exports.injectExternalAppSources = (project) => {
110
110
 
111
111
  return Promise.resolve()
112
112
  .then(() => {
113
- return tools.rmdirFull(projectSrcPath, false);
113
+ return tools.rimraf(projectSrcPath);
114
114
  })
115
115
  .then(() => {
116
116
  tools.logInfo(`${appSourcesSrcPath} injecting in ${projectSrcPath}`);
@@ -26,6 +26,13 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
26
26
  return configUtils.angular.registerAngularProjectDef(project, build);
27
27
  })
28
28
 
29
+ // inject external app sources declaration
30
+ .then(() => {
31
+ if (project.appSources && project.appSources.external) {
32
+ return injectionUtils.externals.injectExternalAppSources(project);
33
+ }
34
+ })
35
+
29
36
  // inject project config if set as external config deps
30
37
  .then(() => {
31
38
  if (project.config) {
@@ -52,12 +59,6 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
52
59
  }
53
60
  })
54
61
 
55
- // inject external app sources declaration
56
- .then(() => {
57
- if (project.appSources && project.appSources.external) {
58
- return injectionUtils.externals.injectExternalAppSources(project);
59
- }
60
- })
61
62
 
62
63
  .then(() => {
63
64
  if (project.config && project.appSources && project.appSources.external && project.appSources.remapRoutesByEnvConfig) {
@@ -127,6 +128,19 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
127
128
  return this.injectAppConfig(project, configEnvTarget);
128
129
  })
129
130
 
131
+ .then(() => {
132
+ const prebuildScript = path.join(project.paths.rootPath, 'pre-build.js');
133
+
134
+ if (!dryRun && tools.isFileExists(prebuildScript)) {
135
+ tools.logInfo('Executing pre-build script');
136
+
137
+ return tools.runScript(`node ${prebuildScript}`);
138
+
139
+ } else {
140
+ tools.logInfo('DRY-RUN or pre-build script not found in project folder --- skipping');
141
+ }
142
+ })
143
+
130
144
  .catch((e) => {
131
145
  throw e;
132
146
  })