mod-build 3.6.1--beta.21 → 3.6.1--beta.22
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 +1 -1
- package/gulp-tasks/templates.js +2 -3
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 3.6.2
|
|
4
4
|
|
|
5
|
-
- Adding `
|
|
5
|
+
- Adding `check-seasonal-variations` to grab seasons json from mod-site; loop through the siteData for `seasonalVariations: {}`; find any active seasons; and adjust json accordingly
|
|
6
6
|
|
|
7
7
|
## 3.5.7
|
|
8
8
|
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -12,9 +12,9 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
12
12
|
var qsFooterData = require('../src/data/components/qs-footer.js');
|
|
13
13
|
var quoteFooterData = require('../src/data/components/quote-footer.js');
|
|
14
14
|
|
|
15
|
-
// Checking for seasonal variations in the template.js
|
|
15
|
+
// Checking for seasonal variations in the template.js + updating content
|
|
16
16
|
var checkSeasonalVariations = require('./check-seasonal-variations.js');
|
|
17
|
-
const activeSeason = checkSeasonalVariations();
|
|
17
|
+
const activeSeason = checkSeasonalVariations(siteSettings);
|
|
18
18
|
if (activeSeason !== ''){
|
|
19
19
|
if (activeSeason in siteData.seasonalVariations) {
|
|
20
20
|
siteData = {...siteData, ...siteData.seasonalVariations[activeSeason]};
|
|
@@ -145,5 +145,4 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
145
145
|
}))
|
|
146
146
|
.pipe(gulp.dest(siteSettings.tmpFolder));
|
|
147
147
|
};
|
|
148
|
-
|
|
149
148
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mod-build",
|
|
3
|
-
"version": "3.6.1--beta.
|
|
3
|
+
"version": "3.6.1--beta.22",
|
|
4
4
|
"description": "Share components for S3 sites.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"imagemin-webp": "^5.1.0",
|
|
52
52
|
"jquery": "^3.2.1",
|
|
53
53
|
"lodash": "^4.17.15",
|
|
54
|
+
"node-fetch": "^2.6.7",
|
|
54
55
|
"nouislider": "^10.1.0",
|
|
55
56
|
"request": "^2.88.0",
|
|
56
57
|
"run-sequence": "^2.2.1",
|