@eui/tools 5.3.19 → 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.19
1
+ 5.3.20
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
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
+ * * *
1
10
  ## 5.3.19 (2022-06-21)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.3.19",
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
  })
@@ -128,6 +128,19 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
128
128
  return this.injectAppConfig(project, configEnvTarget);
129
129
  })
130
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
+
131
144
  .catch((e) => {
132
145
  throw e;
133
146
  })