mod-build 3.5.4-beta.1 → 3.5.5--beta.2

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,11 +1,20 @@
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
+
7
+ ## 3.5.5
8
+
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.
10
+
3
11
  ## 3.5.2
12
+
4
13
  - `grab-shared-components` task updated: now it grabs all shared-components files that are listed under `mod-site/shared-components/all.json` So there's no need to update the task every time we add a new component.
5
14
 
6
15
  ## 3.5.1
7
16
 
8
- - `grab-shared-components` task was created; added to tasks.js, serve.js & build.js to grab the new shared-components folder from mod-site and copy them to your local env
17
+ - `grab-shared-components` task was created; added to tasks.js, serve.js & build.js to grab the new shared-components folder from mod-site and copy them to your local env
9
18
 
10
19
  ## 3.5.0
11
20
 
@@ -114,6 +114,13 @@ 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
+ return index++;
123
+ }
117
124
  }
118
125
  ];
119
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.5.4-beta.1",
3
+ "version": "3.5.5--beta.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -7,5 +7,7 @@
7
7
  } else {
8
8
  {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/heap-addeventproperties-identify.js' }}
9
9
  }
10
- {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/google-tag-manager-head.js' }}
10
+ {{#unless nogtm}}
11
+ {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/google-tag-manager-head.js' }}
12
+ {{/unless}}
11
13
  </script>