mod-build 3.6.64 → 3.6.65-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,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.65
4
+
5
+ - Removing the `'brand'` task (was working off `mod-site` dependencies which we are no longer using). Also removed the `useCDN` conditional for a few tasks (that I believe was added due to just copying/pasting).
6
+
3
7
  ## 3.6.64
4
8
 
5
9
  - Removing the massive amounts of console logs added in version `3.6.60`; I think the issue with our `grab-shared-scripts` task was that we are calling the `[replaceFooterStylesReference, replaceFooterStylesReferenceInMap]` twice. On the first go around, the QS footer styles are not yet loaded, & then once QS footer styles DID get loaded and we called the function a second time – it might have gotten hung up (we should only call these functions once).
@@ -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-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'compile-prod', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'add-path-subdirectories', 'copy-resources-to-dist', 'build-stat'];
8
+ sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'compile-prod', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'cache-bust', 'add-path-subdirectories', 'copy-resources-to-dist', 'build-stat'];
9
9
  } else if (siteData.isWhiteLabel) {
10
10
  if (siteData.isQSPage) {
11
- sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'copy-videos', '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', 'add-path-subdirectories', 'grab-tooltips-json', 'copy-resources-to-dist', 'build-stat'];
11
+ sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'copy-videos', 'grab-theme-json', 'combine-files', 'grab-images', 'copy-json', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'copy-files-to-build-path', 'cache-bust', 'add-path-subdirectories', 'grab-tooltips-json', 'copy-resources-to-dist', 'build-stat'];
12
12
  } else {
13
- sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'copy-videos', 'combine-files', 'grab-images', 'js-lint', 'html-min','grab-global-images', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'add-path-subdirectories', 'grab-tooltips-json', 'copy-resources-to-dist', 'build-stat'];
13
+ sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'copy-videos', 'combine-files', 'grab-images', 'js-lint', 'html-min','grab-global-images', 'css-min', 'js-min', 'img-min', 'extras', 'cache-bust', 'add-path-subdirectories', 'grab-tooltips-json', 'copy-resources-to-dist', 'build-stat'];
14
14
  }
15
15
  } else {
16
- sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'copy-videos', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'brand', 'cache-bust', 'add-path-subdirectories', 'copy-resources-to-dist', 'build-stat'];
16
+ sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'copy-videos', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'cache-bust', 'add-path-subdirectories', 'copy-resources-to-dist', 'build-stat'];
17
17
  }
18
18
 
19
19
  runSequence(...sequenceOpts, function() {
@@ -64,9 +64,7 @@ module.exports = function() {
64
64
  opts.gulpTasksFolderPath = '.';
65
65
  }
66
66
 
67
- if (opts.siteData.useCDN) {
68
- return require(opts.gulpTasksFolderPath + '/grab-shared-components')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
69
- }
67
+ return require(opts.gulpTasksFolderPath + '/grab-shared-components')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
70
68
  }
71
69
  },
72
70
 
@@ -78,9 +76,7 @@ module.exports = function() {
78
76
  opts.gulpTasksFolderPath = '.';
79
77
  }
80
78
 
81
- if (opts.siteData.useCDN) {
82
- return require(opts.gulpTasksFolderPath + '/grab-shared-scripts')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
83
- }
79
+ return require(opts.gulpTasksFolderPath + '/grab-shared-scripts')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
84
80
  }
85
81
  },
86
82
 
@@ -326,18 +322,6 @@ module.exports = function() {
326
322
  }
327
323
  },
328
324
 
329
- // Brand mod-form on build
330
- 'brand': {
331
- subtasks: [],
332
- func: function(opts) {
333
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
334
- opts.gulpTasksFolderPath = '.';
335
- }
336
-
337
- return require(opts.gulpTasksFolderPath + '/brand')(opts.gulp, opts.gulpSettings);
338
- }
339
- },
340
-
341
325
  // Get images
342
326
  'combine-files': {
343
327
  subtasks: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.64",
3
+ "version": "3.6.65-beta.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -1,15 +0,0 @@
1
- var insert = require('gulp-insert');
2
-
3
- module.exports = function(gulp, siteSettings) {
4
- return function() {
5
- return gulp.src([siteSettings.distFolder + '/' + siteSettings.scriptsSubfolder + '/*.js'])
6
- .pipe(insert.transform(function(contents) {
7
- var packageJson = require('../package.json'),
8
- version = packageJson.devDependencies && packageJson.devDependencies['mod-site'] ? packageJson.devDependencies['mod-site'] : 'Centralized',
9
- comment = '/* Mod Site Version: ' + version + ' */ ';
10
-
11
- return comment + contents;
12
- }))
13
- .pipe(gulp.dest(siteSettings.distFolder + '/' + siteSettings.scriptsSubfolder));
14
- };
15
- };