@eui/tools 6.2.41 → 6.2.43

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.2.41
1
+ 6.2.43
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.2.43 (2022-12-02)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * added post-build script execution on sub-styles package - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([9320f1f1](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9320f1f12366b101a4c3d88ae3d6b3a941666e3b))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.2.42 (2022-12-01)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * added detection log for configEnvTarget on app build - EUI-6448 [EUI-6448](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-6448) ([af1a0bcc](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/af1a0bcc05e0569c390f5771cb6c0b49c24a5f4b))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.2.41 (2022-11-28)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.2.41",
3
+ "version": "6.2.43",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -34,22 +34,30 @@ const getProjectInfos = () => {
34
34
 
35
35
 
36
36
  module.exports.angular = (envTarget, isSnapshot, version, configEnvTargetIn) => {
37
-
38
37
  const currentProject = getProjectInfos();
39
38
 
39
+ tools.logTitle(`Building application : ${currentProject.name}...`);
40
+ console.log(currentProject);
41
+
42
+ tools.logInfo('With build params : ');
43
+ console.log(envTarget, isSnapshot, version, configEnvTargetIn);
44
+
40
45
  const ng = path.resolve(currentProject.paths.nodeModulesPath, '@angular', 'cli', 'bin', 'ng');
41
46
 
42
47
  // checking if configEnvTarget is passed as param, if not take the global script param
43
48
  // as this angular build method can be called in stand-alone (outside of CSDR pipeline flow)
44
49
  if (configEnvTargetIn) {
45
50
  configEnvTarget = configEnvTargetIn;
51
+ tools.logInfo(`ConfigEnvTarget known : ${configEnvTarget}`);
46
52
 
47
53
  } else {
48
54
  if (configEnvTarget && typeof (configEnvTarget) === 'boolean') {
49
55
  configEnvTarget = null;
56
+ tools.logInfo(`ConfigEnvTarget unknown`);
50
57
 
51
58
  if (currentProject.build && currentProject.build.csdrFileReplacement) {
52
59
  configEnvTarget = envTarget;
60
+ tools.logInfo(`ConfigEnvTarget known (from envTarget): ${configEnvTarget}`);
53
61
  }
54
62
  }
55
63
  }
@@ -10,7 +10,7 @@ const tools = require('../../tools');
10
10
  const notificationUtils = require('../../notification/notification-utils');
11
11
 
12
12
  // FETCH ARGS
13
- let { skipCompile } = tools.getArgs();
13
+ let { skipCompile, dryRun } = tools.getArgs();
14
14
 
15
15
 
16
16
  const compileSassFileNodeSass = (folder, filename, isNodeSassTildeImporterActive) => {
@@ -264,6 +264,15 @@ module.exports.build = (pkg) => {
264
264
  package: pkg
265
265
  })
266
266
  })
267
+ .then(() => {
268
+ tools.logInfo('Executing post-build.js script if present in package');
269
+ const postbuildScript = path.join(pkg.paths.root, 'post-build.js');
270
+ if (!dryRun && tools.isFileExists(postbuildScript)) {
271
+ return tools.runScript(`node ${postbuildScript}`);
272
+ } else {
273
+ tools.logInfo('DRY-RUN OR post-build.js script not found in package root --- SKIPPING');
274
+ }
275
+ })
267
276
 
268
277
  .catch((e) => {
269
278
  throw e;