mod-build 3.6.36-beta.2 → 3.6.36-beta.3
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,6 +4,8 @@ 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
|
+
var buffer = require('gulp-buffer');
|
|
7
9
|
|
|
8
10
|
const fileNames = {
|
|
9
11
|
modAlyticsFileName: '',
|
|
@@ -96,10 +98,15 @@ function getResource(url, config = {}, fn, fnArray) {
|
|
|
96
98
|
}
|
|
97
99
|
})
|
|
98
100
|
.pipe(source(`${file}`))
|
|
101
|
+
.pipe(size())
|
|
99
102
|
.pipe(hash({
|
|
100
103
|
hashLength: 20,
|
|
104
|
+
algorithm: 'md5',
|
|
101
105
|
template: file.replace(/^([^.]*)\.(.*)$/, '$1-<%= hash %>.$2')
|
|
102
106
|
}))
|
|
107
|
+
.on('data', function(chunk) {
|
|
108
|
+
console.log(chunk);
|
|
109
|
+
})
|
|
103
110
|
.pipe(tap(function(file, t) {
|
|
104
111
|
fileNames[config.fileName] = path.basename(file.path);
|
|
105
112
|
}))
|
|
@@ -256,8 +263,9 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
256
263
|
});
|
|
257
264
|
}
|
|
258
265
|
|
|
259
|
-
|
|
260
|
-
|
|
266
|
+
return Promise.all(getAllResources).then(function() {
|
|
267
|
+
console.log('ALL DONE!!!');
|
|
268
|
+
})
|
|
261
269
|
}());
|
|
262
270
|
};
|
|
263
271
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mod-build",
|
|
3
|
-
"version": "3.6.36-beta.
|
|
3
|
+
"version": "3.6.36-beta.3",
|
|
4
4
|
"description": "Share components for S3 sites.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"bootstrap-sass": "^3.4.3",
|
|
16
16
|
"browser-sync": "^2.18.6",
|
|
17
17
|
"del": "^3.0.0",
|
|
18
|
-
"es6-promise": "^2.1.1",
|
|
19
18
|
"fancy-log": "^2.0.0",
|
|
20
19
|
"gulp": "^3.9.1",
|
|
21
20
|
"gulp-autoprefixer": "^3.1.1",
|
|
22
21
|
"gulp-babel": "^8.0.0",
|
|
22
|
+
"gulp-buffer": "0.0.2",
|
|
23
23
|
"gulp-clean-css": "^3.0.4",
|
|
24
24
|
"gulp-concat": "^2.6.1",
|
|
25
25
|
"gulp-cssmin": "^0.1.7",
|
|
@@ -57,9 +57,7 @@
|
|
|
57
57
|
"imagemin-webp": "^5.1.0",
|
|
58
58
|
"jquery": "^3.2.1",
|
|
59
59
|
"lodash": "^4.17.15",
|
|
60
|
-
"lodash.assign": "^2.4.1",
|
|
61
60
|
"lodash.merge": "^4.6.2",
|
|
62
|
-
"lodash.template": "^2.4.1",
|
|
63
61
|
"nouislider": "^10.1.0",
|
|
64
62
|
"path": "^0.12.7",
|
|
65
63
|
"plugin-error": "^2.0.1",
|
|
@@ -67,8 +65,6 @@
|
|
|
67
65
|
"run-sequence": "^2.2.1",
|
|
68
66
|
"sass": "^1.49.9",
|
|
69
67
|
"should": "^11.2.1",
|
|
70
|
-
"through2": "^2.0.0",
|
|
71
|
-
"vinyl": "^2.2.1",
|
|
72
68
|
"vinyl-source-stream": "^2.0.0",
|
|
73
69
|
"webpack-stream": "^5.2.1"
|
|
74
70
|
},
|