ld31-space-diggers/node_modules/gulp-concat/test/test-stream.js
Ruben Müller 760c1838ed Add game
2014-12-07 20:57:49 +01:00

20 lines
464 B
JavaScript

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))
};