aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp-tar
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/gulp-tar')
-rw-r--r--node_modules/gulp-tar/index.js50
-rw-r--r--node_modules/gulp-tar/license9
-rw-r--r--node_modules/gulp-tar/package.json48
-rw-r--r--node_modules/gulp-tar/readme.md48
4 files changed, 0 insertions, 155 deletions
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();
- });
-};
diff --git a/node_modules/gulp-tar/license b/node_modules/gulp-tar/license
deleted file mode 100644
index e7af2f771..000000000
--- a/node_modules/gulp-tar/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/gulp-tar/package.json b/node_modules/gulp-tar/package.json
deleted file mode 100644
index a29669feb..000000000
--- a/node_modules/gulp-tar/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "name": "gulp-tar",
- "version": "2.1.0",
- "description": "Create tarball from files",
- "license": "MIT",
- "repository": "sindresorhus/gulp-tar",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=4"
- },
- "scripts": {
- "test": "xo && mocha"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "gulpplugin",
- "tar",
- "tarball",
- "archive",
- "archiver",
- "compress",
- "compression",
- "file",
- "files",
- "stream",
- "streams"
- ],
- "dependencies": {
- "archiver": "^1.0.0",
- "plugin-error": "^0.1.2",
- "through2": "^2.0.0",
- "vinyl": "^2.1.0"
- },
- "devDependencies": {
- "gulp": "*",
- "gulp-gzip": "^1.2.0",
- "mocha": "*",
- "tar-stream": "^1.0.2",
- "vinyl-map": "^1.0.1",
- "xo": "*"
- }
-}
diff --git a/node_modules/gulp-tar/readme.md b/node_modules/gulp-tar/readme.md
deleted file mode 100644
index 5b036443a..000000000
--- a/node_modules/gulp-tar/readme.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# gulp-tar [![Build Status](https://travis-ci.org/sindresorhus/gulp-tar.svg?branch=master)](https://travis-ci.org/sindresorhus/gulp-tar)
-
-> Create [tarball](http://en.wikipedia.org/wiki/Tar_(computing)) from files
-
-
-## Install
-
-```
-$ npm install --save-dev gulp-tar
-```
-
-
-## Usage
-
-```js
-const gulp = require('gulp');
-const tar = require('gulp-tar');
-const gzip = require('gulp-gzip');
-
-gulp.task('default', () =>
- gulp.src('src/*')
- .pipe(tar('archive.tar'))
- .pipe(gzip())
- .pipe(gulp.dest('dist'))
-);
-```
-
-
-## API
-
-### tar(filename, [options])
-
-#### filename
-
-Type: `string`
-
-Filename for the output tar archive.
-
-#### options
-
-Type: `Object`
-
-Default options passed to [Archiver](https://github.com/archiverjs/node-archiver)'s [constructor](https://archiverjs.com/docs/Archiver.html) and merged into the [data](https://archiverjs.com/docs/global.html#TarEntryData) passed to its [`append`](https://archiverjs.com/docs/Archiver.html#append) method.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)