mod-build 3.5.1--beta.19 → 3.5.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.5.1
4
+
5
+ - `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
6
+
3
7
  ## 3.5.0
4
8
 
5
9
  - `gulp-sass` package updated to version 5 to make it compatible with active LTS version of node
@@ -32,7 +32,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
32
32
  '/templates/modals/privacy/': ['/templates/modals/privacy/', 'index.html'],
33
33
  '/templates/modals/terms/': ['/templates/modals/terms/', 'index.html'],
34
34
  '/templates/qs-modals/contact-us/': ['/templates/modals/contact-us/', 'index.html'],
35
- '/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html'],
35
+ '/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html']
36
36
  };
37
37
 
38
38
  if (includeFaqLink) {
@@ -5,7 +5,6 @@ function streamToDestination(gulp, siteSettings, inputPath, destPath, fileName)
5
5
  return new Promise(resolve => { // eslint-disable-line no-undef
6
6
  request(`https://${siteSettings.nodeEnv}/quote/resources/mod-site${inputPath}`)
7
7
  .on('response', resp => {
8
- console.log(resp.statusCode);
9
8
  if (resp.statusCode !== 200) {
10
9
  throw new Error(`${resp.statusCode} Error while fetching ${fileName}`);
11
10
  }
@@ -17,6 +17,7 @@ module.exports = function() {
17
17
  dataSubfolder: 'data',
18
18
  nodeEnv: process.env.NODE_ENV, // eslint-disable-line no-undef
19
19
  isLocal: process.env.IS_LOCAL, // eslint-disable-line no-undef
20
- buildPath: process.env.BUILD_PATH // eslint-disable-line no-undef
20
+ buildPath: process.env.BUILD_PATH, // eslint-disable-line no-undef
21
+ isQSPage: window.location.href.includes('quadlink')
21
22
  };
22
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.5.1--beta.19",
3
+ "version": "3.5.1--beta.22",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"