mod-build 3.5.5 → 3.5.7--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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.5.6
4
+
5
+ - Adding `inc` handlebars helper to template.js to increment a certain value by 1
6
+
3
7
  ## 3.5.5
4
8
 
5
9
  - Added functionality to don't include the gtm script if `nogtm=true` parameter is present in vwo_callback.html/analytics.html fileInclude call (from site level). This is useful in late loading gtm on test versions.
@@ -114,6 +114,14 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
114
114
  fn: function(json) {
115
115
  return JSON.stringify(json);
116
116
  }
117
+ },
118
+ // Adding increment of 1 to value
119
+ {
120
+ name: 'inc',
121
+ fn: function(index) {
122
+ index++;
123
+ return index;
124
+ }
117
125
  }
118
126
  ];
119
127
 
@@ -123,7 +131,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
123
131
  '!' + siteSettings.srcFolder + '/' + siteSettings.templatesSubfolder + '/_partials/**/*.html'
124
132
  ])
125
133
  .pipe(gulpPlugins.handlebarsFileInclude(templatesData, {
126
- maxRecursion: 125,
134
+ maxRecursion: 500,
127
135
  handlebarsHelpers: handlebarsHelpers
128
136
  }))
129
137
  .pipe(gulp.dest(siteSettings.tmpFolder));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.5.5",
3
+ "version": "3.5.7--beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"