mod-build 3.6.10--beta.2 → 3.6.11--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 +4 -0
- package/gulp-tasks/grab-shared-scripts.js +7 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.11
|
|
4
|
+
|
|
5
|
+
- Adding `mod-form` & `qs-form` to the `grab-shared-scripts` gulp task. It will copy these files into the site's `resources/scripts/mod-form` folder & then update the src for both in the `foot-assets` shared component.
|
|
6
|
+
|
|
3
7
|
## 3.6.10
|
|
4
8
|
|
|
5
9
|
- Adding `modutils` JS to the `grab-shared-scripts` gulp task. It will copy this version into the site's `resources/scripts/mod-utils` folder & then update the src in the `foot-assets` shared component.
|
|
@@ -17,7 +17,7 @@ var qsFormFileName = '';
|
|
|
17
17
|
function replaceModalyticsSrc(gulp, gulpPlugins, siteSettings, siteData) {
|
|
18
18
|
if (siteData.siteData && siteData.siteData.isQuotePage === true || siteData.siteData && siteData.siteData.useRelativePathForResources === true) {
|
|
19
19
|
return gulp.src(siteSettings.srcFolder + '/shared-components/head/head.html')
|
|
20
|
-
.pipe(replace(/".*(modalytics).*"/, '"resources/scripts/mod-alytics/' + modAlyticsFileName + '"'))
|
|
20
|
+
.pipe(replace(/".*(modalytics).*"/, '"{{#if this.src}}{{this.src}}{{/if}}resources/scripts/mod-alytics/' + modAlyticsFileName + '"'))
|
|
21
21
|
.pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/head'));
|
|
22
22
|
} else {
|
|
23
23
|
return gulp.src(siteSettings.srcFolder + '/shared-components/head/head.html')
|
|
@@ -29,10 +29,10 @@ function replaceModalyticsSrc(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
29
29
|
function replaceFootAssetScripts(gulp, gulpPlugins, siteSettings, siteData) {
|
|
30
30
|
if (siteData.siteData && siteData.siteData.isQuotePage === true || siteData.siteData && siteData.siteData.useRelativePathForResources === true) {
|
|
31
31
|
return gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
|
|
32
|
-
.pipe(replace(/"(?:(?!"|js")[\s\S])+(modutils|mod-utils.*?)js"/, '"resources/scripts/mod-utils/' + modUtilsFileName + '"'))
|
|
33
|
-
.pipe(replace(/"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"/, '"resources/scripts/footer/' + footerComponentJsFileName + '"'))
|
|
34
|
-
.pipe(replace(/"(?:(?!"|")[\s\S])+(mod-form.*?)js"/, '"resources/scripts/mod-form/' + modFormFileName + '"'))
|
|
35
|
-
.pipe(replace(/"(?:(?!"|")[\s\S])+(qs-form.*?)js"/, '"resources/scripts/mod-form/' + qsFormFileName + '"'))
|
|
32
|
+
.pipe(replace(/"(?:(?!"|js")[\s\S])+(modutils|mod-utils.*?)js"/, '"{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts/mod-utils/' + modUtilsFileName + '"'))
|
|
33
|
+
.pipe(replace(/"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"/, '"{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts/footer/' + footerComponentJsFileName + '"'))
|
|
34
|
+
.pipe(replace(/"(?:(?!"|")[\s\S])+(mod-form.*?)js"/, '"{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts/mod-form/' + modFormFileName + '"'))
|
|
35
|
+
.pipe(replace(/"(?:(?!"|")[\s\S])+(qs-form.*?)js"/, '"{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts/mod-form/' + qsFormFileName + '"'))
|
|
36
36
|
.pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/foot-assets'));
|
|
37
37
|
} else {
|
|
38
38
|
return gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
|
|
@@ -57,12 +57,7 @@ function replaceAbandonmentJsSrc(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function replaceFooterStylesReference(gulp, gulpPlugins, siteSettings, siteData) {
|
|
60
|
-
if (siteData.siteData && siteData.siteData.isQuotePage
|
|
61
|
-
return gulp.src(siteSettings.srcFolder + '/resources/scripts/footer/' + footerComponentJsFileName)
|
|
62
|
-
.pipe(replace(/concat\((?:(?!concat\(|\))[\s\S])+(components\/footer\/mod.*?)\)/, 'concat("resources/styles/components/footer/' + modFooterStylesFileName + '")'))
|
|
63
|
-
.pipe(replace(/concat\((?:(?!concat\(|\))[\s\S])+(components\/footer\/qs.*?)\)/, 'concat("resources/styles/components/footer/' + qsFooterStylesFileName + '")'))
|
|
64
|
-
.pipe(gulp.dest(siteSettings.srcFolder + '/resources/scripts/footer'));
|
|
65
|
-
} else {
|
|
60
|
+
if (!siteData.siteData || siteData.siteData && siteData.siteData.isQuotePage !== true || siteData.siteData && siteData.siteData.useRelativePathForResources !== true) {
|
|
66
61
|
return gulp.src(siteSettings.srcFolder + '/resources/scripts/footer/' + footerComponentJsFileName)
|
|
67
62
|
.pipe(replace(/concat\((?:(?!concat\(|\))[\s\S])+(components\/footer\/mod.*?)\)/, 'concat("/resources/styles/components/footer/' + modFooterStylesFileName + '")'))
|
|
68
63
|
.pipe(replace(/concat\((?:(?!concat\(|\))[\s\S])+(components\/footer\/qs.*?)\)/, 'concat("/resources/styles/components/footer/' + qsFooterStylesFileName + '")'))
|
|
@@ -71,12 +66,7 @@ function replaceFooterStylesReference(gulp, gulpPlugins, siteSettings, siteData)
|
|
|
71
66
|
}
|
|
72
67
|
|
|
73
68
|
function replaceFooterStylesReferenceInMap(gulp, gulpPlugins, siteSettings, siteData) {
|
|
74
|
-
if (siteData.siteData && siteData.siteData.isQuotePage
|
|
75
|
-
return gulp.src(siteSettings.srcFolder + '/resources/scripts/footer/footer-component.min.js.map')
|
|
76
|
-
.pipe(replace(/\`(?:(?!\`|\`)[\s\S])+(components\/footer\/mod.*?)\`/, '`resources/styles/components/footer/' + modFooterStylesFileName + '`'))
|
|
77
|
-
.pipe(replace(/\`(?:(?!\`|\`)[\s\S])+(components\/footer\/qs.*?)\`/, '`resources/styles/components/footer/' + qsFooterStylesFileName + '`'))
|
|
78
|
-
.pipe(gulp.dest(siteSettings.srcFolder + '/resources/scripts/footer'));
|
|
79
|
-
} else {
|
|
69
|
+
if (!siteData.siteData || siteData.siteData && siteData.siteData.isQuotePage !== true || siteData.siteData && siteData.siteData.useRelativePathForResources !== true) {
|
|
80
70
|
return gulp.src(siteSettings.srcFolder + '/resources/scripts/footer/footer-component.min.js.map')
|
|
81
71
|
.pipe(replace(/\`(?:(?!\`|\`)[\s\S])+(components\/footer\/mod.*?)\`/, '`/resources/styles/components/footer/' + modFooterStylesFileName + '`'))
|
|
82
72
|
.pipe(replace(/\`(?:(?!\`|\`)[\s\S])+(components\/footer\/mod.*?)\`/, '`/resources/styles/components/footer/' + qsFooterStylesFileName + '`'))
|