mod-build 3.6.89-beta.3 → 3.6.89

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
@@ -3,6 +3,7 @@
3
3
  ## 3.6.89
4
4
 
5
5
  - Updated the `add-path-subdirectories` task to include path replacements for `../` or any variation of `../` in the attribute replacement values.
6
+ - Updated the `grab-shared-scripts` task to only add the `${pathSubdirectory}` inside the JS files; as the `add-path-subdirectories` task will handle replacement of everything else
6
7
 
7
8
  ## 3.6.88
8
9
 
@@ -59,7 +59,7 @@ function replaceAbandonmentJsCssSrc(gulp, gulpPlugins, siteSettings, siteData) {
59
59
  .pipe(gulp.dest(siteSettings.srcFolder + '/templates/abandonment'));
60
60
  }
61
61
  function replaceFooterStylesReference(gulp, gulpPlugins, siteSettings, siteData) {
62
- if (siteData.siteData && siteData.siteData.useRelativePathForResources === true) {
62
+ if (isQuotePageOrUseRelativePath) {
63
63
  return gulp.src(siteSettings.srcFolder + '/resources/scripts/footer/' + fileNames.footerComponentJsFileName)
64
64
  .pipe(replace(/concat\((?:(?!concat\(|\))[\s\S])+(components\/footer\/mod.*?)\)/, `concat("${pathSubdirectory}resources/styles/components/footer/` + fileNames.modFooterStylesFileName + '")'))
65
65
  .pipe(replace(/concat\((?:(?!concat\(|\))[\s\S])+(components\/footer\/qs.*?)\)/, `concat("${pathSubdirectory}resources/styles/components/footer/` + fileNames.qsFooterStylesFileName + '")'))
@@ -72,7 +72,7 @@ function replaceFooterStylesReference(gulp, gulpPlugins, siteSettings, siteData)
72
72
  }
73
73
  }
74
74
  function replaceFooterStylesReferenceInMap(gulp, gulpPlugins, siteSettings, siteData) {
75
- if (siteData.siteData && siteData.siteData.useRelativePathForResources === true) {
75
+ if (isQuotePageOrUseRelativePath) {
76
76
  return gulp.src(siteSettings.srcFolder + '/resources/scripts/footer/footer-component.min.js.map')
77
77
  .pipe(replace(/\`(?:(?!\`|\`)[\s\S])+(components\/footer\/mod.*?)\`/, '`' + pathSubdirectory + 'resources/styles/components/footer/' + fileNames.modFooterStylesFileName + '`'))
78
78
  .pipe(replace(/\`(?:(?!\`|\`)[\s\S])+(components\/footer\/mod.*?)\`/, '`' + pathSubdirectory + 'resources/styles/components/footer/' + fileNames.qsFooterStylesFileName + '`'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.89-beta.3",
3
+ "version": "3.6.89",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",