mod-build 3.5.1--beta.10 → 3.5.1--beta.13

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.
@@ -5,15 +5,15 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
5
5
  var sequenceOpts;
6
6
 
7
7
  if (siteData.useTypescript) {
8
- sequenceOpts = ['clean', 'grab-cdn', 'grab-component-styles', 'templates', 'styles', 'compile-prod', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'build-stat'];
8
+ sequenceOpts = ['clean', 'grab-cdn', 'templates', 'styles', 'compile-prod', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'build-stat'];
9
9
  } else if (siteData.isWhiteLabel) {
10
10
  if (siteData.isQSPage) {
11
- sequenceOpts = ['clean', 'grab-cdn', 'grab-component-styles', 'templates', 'styles', 'grab-theme-json', 'combine-files', 'grab-images', 'copy-json', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'copy-files-to-build-path', 'cache-bust', 'grab-tooltips-json', 'build-stat'];
11
+ sequenceOpts = ['clean', 'grab-cdn', 'templates', 'styles', 'grab-theme-json', 'combine-files', 'grab-images', 'copy-json', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'copy-files-to-build-path', 'cache-bust', 'grab-tooltips-json', 'build-stat'];
12
12
  } else {
13
- sequenceOpts = ['clean', 'grab-cdn', 'grab-component-styles', 'templates', 'styles', 'combine-files', 'grab-images', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'grab-tooltips-json', 'build-stat'];
13
+ sequenceOpts = ['clean', 'grab-cdn', 'templates', 'styles', 'combine-files', 'grab-images', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'grab-tooltips-json', 'build-stat'];
14
14
  }
15
15
  } else {
16
- sequenceOpts = ['clean', 'grab-cdn', 'grab-component-styles', 'templates', 'styles', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'build-stat'];
16
+ sequenceOpts = ['clean', 'grab-cdn', 'templates', 'styles', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'build-stat'];
17
17
  }
18
18
 
19
19
  runSequence(...sequenceOpts, function() {
@@ -33,7 +33,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
33
33
  '/templates/modals/terms/': ['/templates/modals/terms/', 'index.html'],
34
34
  '/templates/qs-modals/contact-us/': ['/templates/modals/contact-us/', 'index.html'],
35
35
  '/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html'],
36
- '/shared-components/carousel/index.html': ['/templates/shared-components/carousel/', 'index.html']
36
+ '/shared-components/carousel/index.html': ['/templates/shared-components/', 'carousel.html']
37
37
  };
38
38
 
39
39
  if (includeFaqLink) {
@@ -6,7 +6,7 @@ function streamToDestination(gulp, siteSettings, inputPath, destPath, fileName)
6
6
  request(`https://${siteSettings.nodeEnv}/quote/resources/mod-site${inputPath}`)
7
7
  .on('response', resp => {
8
8
  if (resp.statusCode !== 200) {
9
- throw new Error('Error fetching about/privacy/terms modals');
9
+ throw new Error(`${resp.statusCode} Error while fetching ${fileName}`);
10
10
  }
11
11
  })
12
12
  .pipe(source(fileName))
@@ -27,7 +27,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
27
27
  // key: inputPath, value: destPath
28
28
 
29
29
  externalResources = {
30
- '/shared-components/carousel/styles.scss': ['/styles/shared-components/carousel', 'styles.scss']
30
+ '/shared-components/carousel/_styles.scss': ['/styles/shared-components/carousel', '_styles.scss']
31
31
  };
32
32
 
33
33
  if (!nodeEnv) {
@@ -4,11 +4,11 @@ module.exports.src = function(gulp, gulpPlugins, siteSettings, siteData) {
4
4
  var runSequence = require('run-sequence');
5
5
  var sequenceOpts;
6
6
  if (siteData.useTypescript) {
7
- sequenceOpts = ['clean', 'grab-cdn', 'grab-component-styles', 'templates', 'styles', 'compile', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
7
+ sequenceOpts = ['clean', 'grab-cdn', 'templates', 'styles', 'compile', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
8
8
  } else if (siteData.isQSPage) {
9
- sequenceOpts = ['clean', 'grab-cdn', 'grab-component-styles', 'templates', 'styles', 'grab-theme-json', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
9
+ sequenceOpts = ['clean', 'grab-cdn', 'templates', 'styles', 'grab-theme-json', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
10
10
  } else {
11
- sequenceOpts = ['clean', 'grab-cdn', 'grab-component-styles', 'templates', 'styles', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
11
+ sequenceOpts = ['clean', 'grab-cdn', 'templates', 'styles', 'grab-tooltips-json', 'combine-files', 'grab-images', 'js-lint'];
12
12
  }
13
13
  runSequence(...sequenceOpts, () => {
14
14
  // Run a BrowserSync server
@@ -43,18 +43,18 @@ module.exports = function() {
43
43
  },
44
44
 
45
45
  // Grab component scss files from CDN so they can be swapped into build
46
- 'grab-component-styles': {
47
- subtasks: [],
48
- func: function(opts) {
49
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
50
- opts.gulpTasksFolderPath = '.';
51
- }
52
-
53
- if (opts.siteData.useCDN) {
54
- return require(opts.gulpTasksFolderPath + '/grab-component-styles')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
55
- }
56
- }
57
- },
46
+ // 'grab-component-styles': {
47
+ // subtasks: [],
48
+ // func: function(opts) {
49
+ // if ('undefined' === typeof opts.gulpTasksFolderPath) {
50
+ // opts.gulpTasksFolderPath = '.';
51
+ // }
52
+
53
+ // if (opts.siteData.useCDN) {
54
+ // return require(opts.gulpTasksFolderPath + '/grab-component-styles')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
55
+ // }
56
+ // }
57
+ // },
58
58
 
59
59
  // Link scss files
60
60
  'sass-lint': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.5.1--beta.10",
3
+ "version": "3.5.1--beta.13",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"