From cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Mar 2019 21:01:33 +0100 Subject: remove node_modules --- node_modules/gulp-tar/index.js | 50 ------------------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 node_modules/gulp-tar/index.js (limited to 'node_modules/gulp-tar/index.js') diff --git a/node_modules/gulp-tar/index.js b/node_modules/gulp-tar/index.js deleted file mode 100644 index eea7e2722..000000000 --- a/node_modules/gulp-tar/index.js +++ /dev/null @@ -1,50 +0,0 @@ -'use strict'; -const path = require('path'); -const through = require('through2'); -const archiver = require('archiver'); -const PluginError = require('plugin-error'); -const Vinyl = require('vinyl'); - -module.exports = (filename, options) => { - if (!filename) { - throw new PluginError('gulp-tar', '`filename` required'); - } - - let firstFile; - const archive = archiver('tar', options); - - return through.obj((file, enc, cb) => { - if (file.relative === '') { - cb(); - return; - } - - if (firstFile === undefined) { - firstFile = file; - } - - archive.append(file.contents, Object.assign({ - name: file.relative.replace(/\\/g, '/') + (file.isNull() ? '/' : ''), - mode: file.stat && file.stat.mode, - date: file.stat && file.stat.mtime ? file.stat.mtime : null - }, options)); - - cb(); - }, function (cb) { - if (firstFile === undefined) { - cb(); - return; - } - - archive.finalize(); - - this.push(new Vinyl({ - cwd: firstFile.cwd, - base: firstFile.base, - path: path.join(firstFile.base, filename), - contents: archive - })); - - cb(); - }); -}; -- cgit v1.2.3