mod-build 3.6.3--beta.1 → 3.6.3--beta.4
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/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}/quote/resources${inputPath}`;
|
|
6
|
+
var url = `https://${siteSettings.nodeEnv}/quote/resources/mod-site${inputPath}`;
|
|
7
7
|
|
|
8
8
|
return new Promise(resolve => { // eslint-disable-line no-undef
|
|
9
9
|
request(url)
|
|
@@ -30,23 +30,21 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
30
30
|
// key: inputPath, value: destPath
|
|
31
31
|
|
|
32
32
|
externalResources = {
|
|
33
|
-
'/
|
|
34
|
-
'/mod-alytics/modalytics.min.js': ['/scripts/resources/', 'modalytics.min.js'],
|
|
35
|
-
'/mod-utils/modutils.min.js': ['/scripts/resources/', 'modutils.min.js']
|
|
33
|
+
'/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html']
|
|
36
34
|
};
|
|
37
35
|
|
|
38
|
-
Object.assign(externalResources, {'/
|
|
36
|
+
Object.assign(externalResources, {'/templates/scripts/jornaya.html': ['/templates/scripts/', 'jornaya.html']});
|
|
39
37
|
|
|
40
38
|
if (isModWhiteLabel || domainHasModernize) {
|
|
41
|
-
Object.assign(externalResources, {'/
|
|
39
|
+
Object.assign(externalResources, {'/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
// local dev files
|
|
45
43
|
const remoteFilesForLocalDev = {
|
|
46
|
-
'/
|
|
47
|
-
'/
|
|
48
|
-
'/
|
|
49
|
-
'/
|
|
44
|
+
'/scripts/mod-form.js': ['/temp/scripts/', 'mod-form.js'],
|
|
45
|
+
'/scripts/mod-utils.js': ['/temp/scripts/', 'mod-utils.js'],
|
|
46
|
+
'/scripts/qs-form.js': ['/temp/scripts/', 'qs-form.js'],
|
|
47
|
+
'/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
|
|
50
48
|
};
|
|
51
49
|
|
|
52
50
|
if (!nodeEnv) {
|
package/gulp-tasks/serve.js
CHANGED
|
@@ -4,11 +4,11 @@ module.exports.src = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
4
4
|
var runSequence = require('run-sequence');
|
|
5
5
|
var sequenceOpts;
|
|
6
6
|
if (siteData.useTypescript) {
|
|
7
|
-
sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'templates', 'styles', 'compile', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
|
|
7
|
+
sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'templates', 'styles', 'compile', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
|
|
8
8
|
} else if (siteData.isQSPage) {
|
|
9
|
-
sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'templates', 'styles', 'grab-theme-json', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
|
|
9
|
+
sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'templates', 'styles', 'grab-theme-json', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
|
|
10
10
|
} else {
|
|
11
|
-
sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'templates', 'styles', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
|
|
11
|
+
sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'templates', 'styles', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
|
|
12
12
|
}
|
|
13
13
|
runSequence(...sequenceOpts, () => {
|
|
14
14
|
// Run a BrowserSync server
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mod-build",
|
|
3
|
-
"version": "3.6.3--beta.
|
|
3
|
+
"version": "3.6.3--beta.4",
|
|
4
4
|
"description": "Share components for S3 sites.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"jquery": "^3.2.1",
|
|
53
53
|
"lodash": "^4.17.15",
|
|
54
54
|
"lodash.merge": "^4.6.2",
|
|
55
|
+
"node-fetch": "^2.6.7",
|
|
55
56
|
"nouislider": "^10.1.0",
|
|
56
57
|
"path": "^0.12.7",
|
|
57
58
|
"request": "^2.88.0",
|