mod-build 3.6.89-beta.2 → 3.6.89-beta.3
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 3.6.89
|
|
4
4
|
|
|
5
|
-
- Updated the `add-path-subdirectories` task to include path replacements for `../` or any variation of `../` in the
|
|
5
|
+
- Updated the `add-path-subdirectories` task to include path replacements for `../` or any variation of `../` in the attribute replacement values.
|
|
6
6
|
|
|
7
7
|
## 3.6.88
|
|
8
8
|
|
|
@@ -24,13 +24,13 @@ var componentFolderPath = '';
|
|
|
24
24
|
|
|
25
25
|
function replaceModalyticsSrc(gulp, gulpPlugins, siteSettings, siteData) {
|
|
26
26
|
const doNotIncludeSrc = siteData.siteData && siteData.siteData.isPathSubdirectory || siteData && siteData.isPathSubdirectory;
|
|
27
|
-
const resourcePath = isQuotePageOrUseRelativePath ? `${
|
|
27
|
+
const resourcePath = isQuotePageOrUseRelativePath ? `${doNotIncludeSrc ? '' : '{{#if this.src}}{{this.src}}{{/if}}'}resources/scripts/mod-alytics/` : '/resources/scripts/mod-alytics/';
|
|
28
28
|
return gulp.src(`${siteSettings.srcFolder}/${componentFolderPath}/head/head.html`)
|
|
29
29
|
.pipe(replace(/".*(modalytics).*"/, `"${resourcePath}${fileNames.modAlyticsFileName}"`))
|
|
30
30
|
.pipe(gulp.dest(`${siteSettings.srcFolder}/${componentFolderPath}/head`));
|
|
31
31
|
}
|
|
32
32
|
function replaceFootAssetScripts(gulp, gulpPlugins, siteSettings, siteData) {
|
|
33
|
-
const resourcePath = isQuotePageOrUseRelativePath ?
|
|
33
|
+
const resourcePath = isQuotePageOrUseRelativePath ? '{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts' : '/resources/scripts';
|
|
34
34
|
return gulp.src(`${siteSettings.srcFolder}/${componentFolderPath}/foot-assets/foot-assets.html`)
|
|
35
35
|
.pipe(replace(/"(?:(?!"|js")[\s\S])+(modutils|mod-utils.*?)js"|"(?:(?!"|")[\s\S])+(callrail.*?)js"|"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"|"(?:(?!"|")[\s\S])+(mod-form\/form.*?)js"/g, function(match) {
|
|
36
36
|
if (match.includes('mod-form/form')) {
|
|
@@ -51,8 +51,8 @@ function replaceFootAssetScripts(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
51
51
|
function replaceAbandonmentJsCssSrc(gulp, gulpPlugins, siteSettings, siteData) {
|
|
52
52
|
const includeAccessibleFolder = useAccessibleComponents ? 'accessible/' : '';
|
|
53
53
|
const abandonmentJsRegex = useAccessibleComponents ? /"(?:(?!"|")[\s\S])+(abandonment\/accessible\/abandonment.*?)js"/ : /"(?:(?!"|")[\s\S])+(abandonment\/abandonment.*?)js"/;
|
|
54
|
-
const jsResourcePath = isQuotePageOrUseRelativePath ?
|
|
55
|
-
const cssResourcePath = isQuotePageOrUseRelativePath ?
|
|
54
|
+
const jsResourcePath = (isQuotePageOrUseRelativePath ? '' : '/') + 'resources/scripts/abandonment/';
|
|
55
|
+
const cssResourcePath = (isQuotePageOrUseRelativePath ? '' : '/') + 'resources/styles/components/abandonment/';
|
|
56
56
|
return gulp.src(siteSettings.srcFolder + '/templates/abandonment/*.html')
|
|
57
57
|
.pipe(replace(abandonmentJsRegex, `"${jsResourcePath}${includeAccessibleFolder}${fileNames.abandonmentJsFileName}"`))
|
|
58
58
|
.pipe(replace(/"(?:(?!"|")[\s\S])+(components\/abandonment\/abandonment.*?)css"/, `"${cssResourcePath}${fileNames.abandonmentStylesFileName}"`))
|