ld31-space-diggers/node_modules/gulp-concat/test/test-stream.js

21 lines
464 B
JavaScript
Raw Normal View History

2014-12-07 20:57:49 +01:00
var array = require('stream-array');
var File = require('gulp-util').File;
module.exports = function () {
var args = Array.prototype.slice.call(arguments);
var i = 0;
function create(contents) {
return new File({
cwd: '/home/contra/',
base: '/home/contra/test',
path: '/home/contra/test/file' + (i++).toString() + '.js',
contents: new Buffer(contents),
stat: {mode: 0666}
});
}
return array(args.map(create))
};