mod-build 3.6.1--beta.7 → 3.6.1--beta.9
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/templates.js
CHANGED
|
@@ -12,7 +12,8 @@ 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
|
-
var
|
|
15
|
+
var checkForSeasonalUpdates = require('../src/scripts/components/make-seasonal-updates.js');
|
|
16
|
+
checkForSeasonalUpdates = makeSeasonalUpdates
|
|
16
17
|
|
|
17
18
|
var templatesData = Object.assign(commonData(), qsFooterData(siteData), quoteFooterData(siteData), siteData, { isLocal, nodeEnv, assetsPath, buildPath });
|
|
18
19
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @returns {Boolean} - if true = update verbiage
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
function
|
|
6
|
+
var makeSeasonalUpdates = function () {
|
|
7
7
|
// const trade = siteData.primary_trade;
|
|
8
8
|
const today = new Date();
|
|
9
9
|
const year = today.getFullYear();
|
|
@@ -18,6 +18,4 @@ function makeSeasonalUpdates() {
|
|
|
18
18
|
// document.write(trade);
|
|
19
19
|
|
|
20
20
|
return !(today > springDate && today < fallDate);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
makeSeasonalUpdates();
|
|
21
|
+
}
|