mod-build 3.6.52 → 3.6.53
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-cdn.js +10 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.53
|
|
4
|
+
|
|
5
|
+
- Since we moved our footer modal templates to live in /quote/resources/shared-resources/, we needed to update `grab-cdn` gulp task to copy them from the updated path
|
|
6
|
+
|
|
3
7
|
## 3.6.52
|
|
4
8
|
|
|
5
9
|
- Added `templatesData.primary_trade` conditional to the `fetchTcpaFromSitegenie()` function so it won't try to run on quote/home-remodel
|
package/gulp-tasks/grab-cdn.js
CHANGED
|
@@ -3,7 +3,7 @@ var source = require('vinyl-source-stream');
|
|
|
3
3
|
|
|
4
4
|
// helper to allow us to define an "end" event to multiple streams
|
|
5
5
|
function streamToDestination(gulp, siteSettings, inputPath, destPath, fileName) {
|
|
6
|
-
var url = `https://${siteSettings.nodeEnv}
|
|
6
|
+
var url = `https://${siteSettings.nodeEnv}${inputPath}`;
|
|
7
7
|
|
|
8
8
|
return new Promise(resolve => { // eslint-disable-line no-undef
|
|
9
9
|
request(url)
|
|
@@ -30,30 +30,27 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
30
30
|
// key: inputPath, value: destPath
|
|
31
31
|
|
|
32
32
|
externalResources = {
|
|
33
|
-
'/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html']
|
|
33
|
+
'/quote/resources/mod-site/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html']
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
// grab footer modals and place under the resources
|
|
37
37
|
Object.assign(externalResources, {
|
|
38
|
-
'/templates/modals/about/': ['/resources/templates/modals/about/', 'index.html'],
|
|
39
|
-
'/templates/modals/privacy/': ['/resources/templates/modals/privacy/', 'index.html'],
|
|
40
|
-
'/templates/modals/terms/': ['/resources/templates/modals/terms/', 'index.html'],
|
|
41
|
-
'/templates/modals/contact-us/': ['/resources/templates/modals/contact-us/', 'index.html'],
|
|
42
|
-
'/templates/modals/faq/': ['/resources/templates/modals/faq/', 'index.html']
|
|
38
|
+
'/quote/resources/shared-resources/templates/modals/about/': ['/resources/templates/modals/about/', 'index.html'],
|
|
39
|
+
'/quote/resources/shared-resources/templates/modals/privacy/': ['/resources/templates/modals/privacy/', 'index.html'],
|
|
40
|
+
'/quote/resources/shared-resources/templates/modals/terms/': ['/resources/templates/modals/terms/', 'index.html'],
|
|
41
|
+
'/quote/resources/shared-resources/templates/modals/contact-us/': ['/resources/templates/modals/contact-us/', 'index.html'],
|
|
42
|
+
'/quote/resources/shared-resources/templates/modals/faq/': ['/resources/templates/modals/faq/', 'index.html']
|
|
43
43
|
})
|
|
44
44
|
|
|
45
|
-
Object.assign(externalResources, {'/templates/scripts/jornaya.html': ['/templates/scripts/', 'jornaya.html']});
|
|
45
|
+
Object.assign(externalResources, {'/quote/resources/mod-site/templates/scripts/jornaya.html': ['/templates/scripts/', 'jornaya.html']});
|
|
46
46
|
|
|
47
47
|
if (isModWhiteLabel || domainHasModernize) {
|
|
48
|
-
Object.assign(externalResources, {'/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
|
|
48
|
+
Object.assign(externalResources, {'/quote/resources/mod-site/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// local dev files
|
|
52
52
|
const remoteFilesForLocalDev = {
|
|
53
|
-
'/
|
|
54
|
-
'/scripts/mod-utils.js': ['/temp/scripts/', 'mod-utils.js'],
|
|
55
|
-
'/scripts/qs-form.js': ['/temp/scripts/', 'qs-form.js'],
|
|
56
|
-
'/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
|
|
53
|
+
'/quote/resources/mod-site/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
|
|
57
54
|
};
|
|
58
55
|
|
|
59
56
|
if (!nodeEnv) {
|