install gulp to process code
This commit is contained in:
parent
24f6606c2c
commit
b6a3900ee2
1651 changed files with 253427 additions and 39 deletions
32
node_modules/collect-stream/build.js
generated
vendored
Normal file
32
node_modules/collect-stream/build.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports['default'] = collect;
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
var _concatStream = require('concat-stream');
|
||||
|
||||
var _concatStream2 = _interopRequireDefault(_concatStream);
|
||||
|
||||
var _once = require('once');
|
||||
|
||||
var _once2 = _interopRequireDefault(_once);
|
||||
|
||||
function collect(stream, opts, fn) {
|
||||
if (typeof opts === 'function') {
|
||||
fn = opts;
|
||||
opts = {};
|
||||
}
|
||||
fn = (0, _once2['default'])(fn);
|
||||
stream.on('error', fn);
|
||||
stream.pipe((0, _concatStream2['default'])(opts, function (data) {
|
||||
fn(null, data);
|
||||
}));
|
||||
}
|
||||
|
||||
;
|
||||
module.exports = exports['default'];
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue