mod-build 3.4.20 → 3.4.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.
@@ -19,7 +19,10 @@ function streamToDestination(gulp, siteSettings, inputPath, destPath, fileName)
19
19
  module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
20
20
  return function() {
21
21
  const { nodeEnv, isLocal } = siteSettings;
22
- const { isQSPage, includeFaqLink } = siteData;
22
+ const { isQSPage, isWhiteLabel, includeFaqLink, domain } = siteData;
23
+ const isModWhiteLabel = isWhiteLabel && !isQSPage
24
+ const domainHasModernize = domain.indexOf('modernize') > -1;
25
+
23
26
  let externalResources;
24
27
  // listing of Static Resources sub-path and site destination paths
25
28
  // key: inputPath, value: destPath
@@ -37,11 +40,15 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
37
40
  }
38
41
 
39
42
  if (isQSPage) {
40
- Object.assign(externalResources, {'/templates/scripts/qs-jornaya.html': ['/templates/scripts/', 'jornaya.html']});
43
+ Object.assign(externalResources, {'/templates/scripts/qs-jornaya.html': ['/templates/scripts/', 'qs-jornaya.html']});
41
44
  } else {
42
45
  Object.assign(externalResources, {'/templates/scripts/jornaya.html': ['/templates/scripts/', 'jornaya.html']});
43
46
  }
44
47
 
48
+ if (isModWhiteLabel || domainHasModernize) {
49
+ Object.assign(externalResources, {'/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
50
+ }
51
+
45
52
  // local dev files
46
53
  const remoteFilesForLocalDev = {
47
54
  '/scripts/mod-form.js': ['/temp/scripts/', 'mod-form.js'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.4.20",
3
+ "version": "3.4.23",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"