mod-build 3.6.75-beta.2 → 3.6.75

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.75
4
+
5
+ - Update grab-shared-scripts task to consider isPathSubdirectory flag for modalytics script path
6
+
3
7
  ## 3.6.74
4
8
 
5
9
  - Updating the `add-path-subdirectories` task to update paths that also start with `accessible-components`
@@ -24,7 +24,6 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
24
24
  const { isQSPage, isWhiteLabel, domain } = siteData;
25
25
  const isModWhiteLabel = isWhiteLabel && !isQSPage
26
26
  const domainHasModernize = domain.indexOf('modernize') > -1;
27
- const cssThemes = siteData && siteData.page && siteData.page.cssThemes;
28
27
 
29
28
  let externalResources;
30
29
  // listing of Static Resources sub-path and site destination paths
@@ -49,15 +48,6 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
49
48
  Object.assign(externalResources, {'/quote/resources/mod-site/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
50
49
  }
51
50
 
52
- if (cssThemes) {
53
- cssThemes.forEach(theme => {
54
- const themeFileName = `_${theme}.scss`;
55
- const themePath = `/quote/resources/shared-resources/styles/themes/${themeFileName}`;
56
-
57
- Object.assign(externalResources, {[themePath]: ['/resources/styles/themes/', themeFileName]});
58
- });
59
- }
60
-
61
51
  // local dev files
62
52
  const remoteFilesForLocalDev = {
63
53
  '/quote/resources/mod-site/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
@@ -22,7 +22,8 @@ var pathSubdirectory = '';
22
22
  var componentFolderPath = '';
23
23
 
24
24
  function replaceModalyticsSrc(gulp, gulpPlugins, siteSettings, siteData) {
25
- const resourcePath = isQuotePageOrUseRelativePath ? `${pathSubdirectory}{{#if this.src}}{{this.src}}{{/if}}resources/scripts/mod-alytics/` : '/resources/scripts/mod-alytics/';
25
+ const doNotIncludeSrc = siteData.siteData && siteData.siteData.isPathSubdirectory || siteData && siteData.isPathSubdirectory;
26
+ const resourcePath = isQuotePageOrUseRelativePath ? `${pathSubdirectory}${doNotIncludeSrc ? '' : '{{#if this.src}}{{this.src}}{{/if}}'}resources/scripts/mod-alytics/` : '/resources/scripts/mod-alytics/';
26
27
  return gulp.src(`${siteSettings.srcFolder}/${componentFolderPath}/head/head.html`)
27
28
  .pipe(replace(/".*(modalytics).*"/, `"${resourcePath}${fileNames.modAlyticsFileName}"`))
28
29
  .pipe(gulp.dest(`${siteSettings.srcFolder}/${componentFolderPath}/head`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.75-beta.2",
3
+ "version": "3.6.75",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",