mod-build 3.6.50 → 3.6.52-beta.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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.53
4
+
5
+ - Since we moved our footer modal templates to live in /quote/resources/shared-resources/, we needed to update `grab-cdn` gulp task to copy them from the updated path
6
+
7
+ ## 3.6.52
8
+
9
+ - Added `templatesData.primary_trade` conditional to the `fetchTcpaFromSitegenie()` function so it won't try to run on quote/home-remodel
10
+
11
+
3
12
  ## 3.6.50
4
13
 
5
14
  - Added functionality in `templates.js` to grab the tcpa from sitegenie at build time
@@ -3,7 +3,7 @@ var source = require('vinyl-source-stream');
3
3
 
4
4
  // helper to allow us to define an "end" event to multiple streams
5
5
  function streamToDestination(gulp, siteSettings, inputPath, destPath, fileName) {
6
- var url = `https://${siteSettings.nodeEnv}/quote/resources/mod-site${inputPath}`;
6
+ var url = `https://${siteSettings.nodeEnv}${inputPath}`;
7
7
 
8
8
  return new Promise(resolve => { // eslint-disable-line no-undef
9
9
  request(url)
@@ -30,30 +30,27 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
30
30
  // key: inputPath, value: destPath
31
31
 
32
32
  externalResources = {
33
- '/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html']
33
+ '/quote/resources/mod-site/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html']
34
34
  };
35
35
 
36
36
  // grab footer modals and place under the resources
37
37
  Object.assign(externalResources, {
38
- '/templates/modals/about/': ['/resources/templates/modals/about/', 'index.html'],
39
- '/templates/modals/privacy/': ['/resources/templates/modals/privacy/', 'index.html'],
40
- '/templates/modals/terms/': ['/resources/templates/modals/terms/', 'index.html'],
41
- '/templates/modals/contact-us/': ['/resources/templates/modals/contact-us/', 'index.html'],
42
- '/templates/modals/faq/': ['/resources/templates/modals/faq/', 'index.html']
38
+ '/quote/resources/shared-resources/templates/modals/about/': ['/resources/templates/modals/about/', 'index.html'],
39
+ '/quote/resources/shared-resources/templates/modals/privacy/': ['/resources/templates/modals/privacy/', 'index.html'],
40
+ '/quote/resources/shared-resources/templates/modals/terms/': ['/resources/templates/modals/terms/', 'index.html'],
41
+ '/quote/resources/shared-resources/templates/modals/contact-us/': ['/resources/templates/modals/contact-us/', 'index.html'],
42
+ '/quote/resources/shared-resources/templates/modals/faq/': ['/resources/templates/modals/faq/', 'index.html']
43
43
  })
44
44
 
45
- Object.assign(externalResources, {'/templates/scripts/jornaya.html': ['/templates/scripts/', 'jornaya.html']});
45
+ Object.assign(externalResources, {'/quote/resources/mod-site/templates/scripts/jornaya.html': ['/templates/scripts/', 'jornaya.html']});
46
46
 
47
47
  if (isModWhiteLabel || domainHasModernize) {
48
- Object.assign(externalResources, {'/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
48
+ Object.assign(externalResources, {'/quote/resources/mod-site/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
49
49
  }
50
50
 
51
51
  // local dev files
52
52
  const remoteFilesForLocalDev = {
53
- '/scripts/mod-form.js': ['/temp/scripts/', 'mod-form.js'],
54
- '/scripts/mod-utils.js': ['/temp/scripts/', 'mod-utils.js'],
55
- '/scripts/qs-form.js': ['/temp/scripts/', 'qs-form.js'],
56
- '/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
53
+ '/quote/resources/mod-site/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
57
54
  };
58
55
 
59
56
  if (!nodeEnv) {
@@ -246,7 +246,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
246
246
  await getDefaultFormFieldConfig();
247
247
  }
248
248
 
249
- if (!templatesData.tcpaText) {
249
+ if (!templatesData.tcpaText && templatesData.primary_trade) {
250
250
  await fetchTcpaFromSitegenie();
251
251
  }
252
252
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.50",
3
+ "version": "3.6.52-beta.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",