mod-build 3.6.73 → 3.6.75-beta.1

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.74
4
+
5
+ - Updating the `add-path-subdirectories` task to update paths that also start with `accessible-components`
6
+
3
7
  ## 3.6.73
4
8
 
5
9
  - Updating `grab-shared-scripts` path to grab & replace the new, global `callrail.min.js` file
@@ -11,7 +11,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
11
11
  return `href="${pathSubdirectory}favicon.ico"`;
12
12
  }))
13
13
  .pipe(replace(/((src=")(images|scripts|shared-components)\/[^"]+")/g, function(match, path) {
14
- if (path.startsWith('src="images') || path.startsWith('src="scripts') || path.startsWith('src="shared-components')) {
14
+ if (path.startsWith('src="images') || path.startsWith('src="scripts') || path.startsWith('src="shared-components') || path.startsWith('src="accessible-components')) {
15
15
  return `src="${pathSubdirectory}${path.slice(5)}`;
16
16
  }
17
17
  return match;
@@ -23,7 +23,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
23
23
  return match;
24
24
  }))
25
25
  .pipe(replace(/((href=")(images|styles|shared-components)\/[^"]+")/g, function(match, path) {
26
- if (path.startsWith('href="images') || path.startsWith('href="styles') || path.startsWith('href="shared-components')) {
26
+ if (path.startsWith('href="images') || path.startsWith('href="styles') || path.startsWith('href="shared-components') || path.startsWith('src="accessible-components')) {
27
27
  return `href="${pathSubdirectory}${path.slice(6)}`;
28
28
  }
29
29
  return match;
@@ -21,7 +21,7 @@ function streamToDestination(gulp, siteSettings, inputPath, destPath, fileName)
21
21
  module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
22
22
  return function() {
23
23
  const { nodeEnv, isLocal } = siteSettings;
24
- const { isQSPage, isWhiteLabel, domain } = siteData;
24
+ const { isQSPage, isWhiteLabel, domain, installThemes } = siteData;
25
25
  const isModWhiteLabel = isWhiteLabel && !isQSPage
26
26
  const domainHasModernize = domain.indexOf('modernize') > -1;
27
27
 
@@ -48,6 +48,10 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
48
48
  Object.assign(externalResources, {'/quote/resources/mod-site/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
49
49
  }
50
50
 
51
+ if (installThemes) {
52
+ Object.assign(externalResources, {'/quote/resources/shared-resources/styles/themes/': ['/resources/styles/themes/', '*']});
53
+ }
54
+
51
55
  // local dev files
52
56
  const remoteFilesForLocalDev = {
53
57
  '/quote/resources/mod-site/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.73",
3
+ "version": "3.6.75-beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",