mod-build 3.5.1---beta.1 → 3.5.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.5.2
4
+ - `grab-shared-components` task updated: now it grabs all shared-components files that are listed under `mod-site/shared-components/all.json` So there's no need to update the task every time we add a new component.
5
+
3
6
  ## 3.5.1
4
7
 
5
8
  - `grab-shared-components` task was created; added to tasks.js, serve.js & build.js to grab the new shared-components folder from mod-site and copy them to your local env
@@ -16,7 +16,7 @@ function streamSharedCompsToDestination(gulp, siteSettings, fileName) {
16
16
  }
17
17
 
18
18
  function getListOfSharedComponents(gulp, gulpPlugins, siteSettings) {
19
- return new Promise(() => { // eslint-disable-line no-undef
19
+ return new Promise(resolve => { // eslint-disable-line no-undef
20
20
  request(`https://${siteSettings.nodeEnv}/quote/resources/mod-site/shared-components/all.json`, function(err, resp, body) {
21
21
  if (resp.statusCode !== 200) {
22
22
  throw new Error(`${resp.statusCode}: Error while fetching shared-components/all.json`);
@@ -25,7 +25,7 @@ function getListOfSharedComponents(gulp, gulpPlugins, siteSettings) {
25
25
  const componentPromises = listOfComponents.map(function(resource) {
26
26
  return streamSharedCompsToDestination(gulp, siteSettings, `${resource}`);
27
27
  });
28
- return Promise.all(componentPromises); // eslint-disable-line no-undef
28
+ resolve(Promise.all(componentPromises)); // eslint-disable-line no-undef
29
29
  });
30
30
  });
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.5.1---beta.1",
3
+ "version": "3.5.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"