mod-build 3.6.36-beta.3 → 3.6.36-beta.5

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.
@@ -4,7 +4,6 @@ var replace = require('gulp-replace');
4
4
  var hash = require('gulp-hash');
5
5
  var tap = require('gulp-tap');
6
6
  var path = require('path');
7
- var size = require('gulp-size');
8
7
  var buffer = require('gulp-buffer');
9
8
 
10
9
  const fileNames = {
@@ -98,15 +97,12 @@ function getResource(url, config = {}, fn, fnArray) {
98
97
  }
99
98
  })
100
99
  .pipe(source(`${file}`))
101
- .pipe(size())
100
+ .pipe(buffer())
102
101
  .pipe(hash({
103
102
  hashLength: 20,
104
103
  algorithm: 'md5',
105
104
  template: file.replace(/^([^.]*)\.(.*)$/, '$1-<%= hash %>.$2')
106
105
  }))
107
- .on('data', function(chunk) {
108
- console.log(chunk);
109
- })
110
106
  .pipe(tap(function(file, t) {
111
107
  fileNames[config.fileName] = path.basename(file.path);
112
108
  }))
@@ -263,9 +259,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
263
259
  });
264
260
  }
265
261
 
266
- return Promise.all(getAllResources).then(function() {
267
- console.log('ALL DONE!!!');
268
- })
262
+ return Promise.all(getAllResources);
269
263
  }());
270
264
  };
271
265
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.36-beta.3",
3
+ "version": "3.6.36-beta.5",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",