mod-build 3.7.23-beta.2 → 3.7.23

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,7 +1,7 @@
1
1
  # Changelog
2
2
 
3
3
  ## 3.7.23
4
- - Added `geolocation.min.js` to the `grab-shared-scripts` task to grab & hash that file during build (and removed it from being pulled down during the `grab-cdn` task).
4
+ - Added `geolocation.min.js` to the `grab-shared-scripts` task to grab & hash that file during build (leaving the file in `grab-cdn` task to not break what is currently there).
5
5
 
6
6
  ## 3.7.22
7
7
  - Added extra conditions for `addTcpaAboveCta` and `addTcpaBelowCta` helper functions to not break when required data is not passed.
@@ -33,7 +33,8 @@ module.exports = function(gulp, _gulpPlugins, siteSettings, siteData) {
33
33
  // key: inputPath, value: destPath
34
34
 
35
35
  externalResources = {
36
- '/quote/resources/mod-site/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html']
36
+ '/quote/resources/mod-site/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html'],
37
+ '/quote/resources/shared-resources/scripts/geolocation/geolocation.min.js': ['resources/scripts/geolocation/', 'geolocation.min.js']
37
38
  };
38
39
 
39
40
  // grab footer modals and place under the resources
@@ -33,10 +33,7 @@ function replaceHeadScripts(gulp, gulpPlugins, siteSettings, siteData) {
33
33
  return `"${resourcePath}/geolocation/${fileNames.geolocationFileName}"`;
34
34
  }
35
35
  }))
36
- .pipe(gulp.dest(`${siteSettings.srcFolder}/${componentFolderPath}/head`))
37
- .on('end', function() {
38
- resolve();
39
- });
36
+ .pipe(gulp.dest(`${siteSettings.srcFolder}/${componentFolderPath}/head`));
40
37
  }
41
38
  function replaceFootAssetScripts(gulp, gulpPlugins, siteSettings, siteData) {
42
39
  const resourcePath = isQuotePageOrUseRelativePath ? '{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts' : '/resources/scripts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.7.23-beta.2",
3
+ "version": "3.7.23",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",