mod-build 3.6.91-beta.7 → 3.6.92

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/.eslintrc.yml CHANGED
@@ -44,6 +44,6 @@ rules: {
44
44
  space-infix-ops: 2,
45
45
  space-in-parens: [2, 'never'],
46
46
  strict: [2, 'never'],
47
- valid-jsdoc: [1, { requireReturn: false, prefer: { return: "returns" }}],
47
+ valid-jsdoc: [2, { requireReturn: false, prefer: { return: "returns" }}],
48
48
  wrap-iife: [2, "inside", { functionPrototypeMethods: true }]
49
49
  }
package/CHANGELOG.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## 3.6.91
3
+ ## 3.6.92
4
4
 
5
5
  - Updating `.eslintrc.yml` with our new lint rules; This configuration will also live on `quote.modernize.com`
6
6
  - Adding a new `add-editorconfig` task that will grab our global `editorconfig` file configuration & either add it to the project, or override the existing file contents
7
7
 
8
+ ## 3.6.91
9
+
10
+ - Added support for xml files
11
+
8
12
  ## 3.6.90
9
13
 
10
14
  - Updating `fetchTcpaFromSitegenie()` to no longer have any use-cases of QuinStreet as the company name; should be Modernize all the time.
@@ -4,8 +4,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings) {
4
4
  return gulp.src(siteSettings.distFolder + '/**')
5
5
  .pipe(gulpPlugins.revAll.revision({
6
6
  dontSearchFile: [/(resources)\/.*/, /(scripts\/components)\/.*/, /(fonts)\/.*/],
7
- dontRenameFile: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/, /(fonts)\/.*/],
8
- dontUpdateReference: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/, /(fonts)\/.*/],
7
+ dontRenameFile: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/, /(fonts)\/.*/, '.xml'],
8
+ dontUpdateReference: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/, /(fonts)\/.*/, '.xml'],
9
9
  transformFilename: function (file, hash) {
10
10
  var ext = path.extname(file.path);
11
11
  return path.basename(file.path, ext) + '-' + hash.substr(0, 8) + ext;
@@ -0,0 +1,7 @@
1
+ // DO NOT REMOVE! It's being used at site level in the organic sites like MiamiHerald to copy sitemap file to destination folder.
2
+ module.exports = function(gulp, siteSettings) {
3
+ return function() {
4
+ return gulp.src(siteSettings.tmpFolder + '/**/*.xml')
5
+ .pipe(gulp.dest(siteSettings.distFolder));
6
+ };
7
+ };
@@ -3,6 +3,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings) {
3
3
 
4
4
  srcPaths.push(siteSettings.srcFolder + '/*.*');
5
5
  srcPaths.push('!' + siteSettings.srcFolder + '/**/*.html');
6
+ srcPaths.push('!' + siteSettings.srcFolder + '/**/*.xml');
6
7
 
7
8
  for (var i = 0; i < siteSettings.browserSyncServeFolders.length; i ++) {
8
9
  srcPaths.push(siteSettings.browserSyncServeFolders[i] + '/**/*.otf');
@@ -477,6 +477,17 @@ module.exports = function() {
477
477
 
478
478
  return require(opts.gulpTasksFolderPath + '/copy-fonts')(opts.gulp, opts.gulpSettings);
479
479
  }
480
+ },
481
+
482
+ 'copy-xml-files-to-dist': {
483
+ subtasks: [],
484
+ func: function(opts) {
485
+ if ('undefined' === typeof opts.gulpTasksFolderPath) {
486
+ opts.gulpTasksFolderPath = '.';
487
+ }
488
+
489
+ return require('./copy-xml-files-to-dist')(opts.gulp, opts.gulpSettings);
490
+ }
480
491
  }
481
492
  };
482
493
 
@@ -287,6 +287,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
287
287
  return new Promise(function(resolve) {
288
288
  return gulp.src([
289
289
  siteSettings.srcFolder + '/' + siteSettings.templatesSubfolder + '/**/*.html',
290
+ siteSettings.srcFolder + '/' + '/**/*.xml',
290
291
  '!' + siteSettings.srcFolder + '/' + siteSettings.templatesSubfolder + '/_partials/**/*.html'
291
292
  ])
292
293
  .pipe(gulpPlugins.handlebarsFileInclude(templatesData, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.91-beta.7",
3
+ "version": "3.6.92",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",