From 82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Apr 2017 03:09:25 +0200 Subject: Reorganize module loading. We now use webpack instead of SystemJS, effectively bundling modules into one file (plus commons chunks) for every entry point. This results in a much smaller extension size (almost half). Furthermore we use yarn/npm even for extension run-time dependencies. This relieves us from manually vendoring and building dependencies. It's also easier to understand for new developers familiar with node. --- .../gulp-zip/node_modules/clone-stats/LICENSE.md | 21 -- .../gulp-zip/node_modules/clone-stats/README.md | 17 - .../gulp-zip/node_modules/clone-stats/index.js | 13 - .../gulp-zip/node_modules/clone-stats/package.json | 31 -- .../gulp-zip/node_modules/clone-stats/test.js | 36 -- .../gulp-zip/node_modules/gulp-util/LICENSE | 20 -- .../gulp-zip/node_modules/gulp-util/README.md | 146 -------- .../gulp-zip/node_modules/gulp-util/index.js | 18 - .../node_modules/gulp-util/lib/PluginError.js | 130 ------- .../gulp-zip/node_modules/gulp-util/lib/buffer.js | 15 - .../gulp-zip/node_modules/gulp-util/lib/combine.js | 11 - .../gulp-zip/node_modules/gulp-util/lib/env.js | 4 - .../node_modules/gulp-util/lib/isBuffer.js | 7 - .../gulp-zip/node_modules/gulp-util/lib/isNull.js | 3 - .../node_modules/gulp-util/lib/isStream.js | 5 - .../gulp-zip/node_modules/gulp-util/lib/log.js | 14 - .../gulp-zip/node_modules/gulp-util/lib/noop.js | 5 - .../node_modules/gulp-util/lib/template.js | 23 -- .../gulp-util/node_modules/.bin/dateformat | 1 - .../gulp-zip/node_modules/gulp-util/package.json | 51 --- .../node_modules/lodash._reinterpolate/LICENSE.txt | 22 -- .../node_modules/lodash._reinterpolate/README.md | 20 -- .../node_modules/lodash._reinterpolate/index.js | 13 - .../lodash._reinterpolate/package.json | 18 - .../gulp-zip/node_modules/lodash.template/LICENSE | 22 -- .../node_modules/lodash.template/README.md | 20 -- .../gulp-zip/node_modules/lodash.template/index.js | 389 --------------------- .../node_modules/lodash.template/package.json | 30 -- .../gulp-zip/node_modules/object-assign/index.js | 39 --- .../gulp-zip/node_modules/object-assign/license | 21 -- .../node_modules/object-assign/package.json | 38 -- .../gulp-zip/node_modules/object-assign/readme.md | 51 --- .../gulp-zip/node_modules/replace-ext/.npmignore | 6 - .../gulp-zip/node_modules/replace-ext/.travis.yml | 8 - .../gulp-zip/node_modules/replace-ext/LICENSE | 20 -- .../gulp-zip/node_modules/replace-ext/README.md | 44 --- .../gulp-zip/node_modules/replace-ext/index.js | 9 - .../gulp-zip/node_modules/replace-ext/package.json | 35 -- .../gulp-zip/node_modules/replace-ext/test/main.js | 51 --- node_modules/gulp-zip/node_modules/vinyl/LICENSE | 20 -- node_modules/gulp-zip/node_modules/vinyl/README.md | 195 ----------- node_modules/gulp-zip/node_modules/vinyl/index.js | 213 ----------- .../gulp-zip/node_modules/vinyl/lib/cloneBuffer.js | 7 - .../node_modules/vinyl/lib/inspectStream.js | 11 - .../gulp-zip/node_modules/vinyl/lib/isBuffer.js | 1 - .../gulp-zip/node_modules/vinyl/lib/isNull.js | 3 - .../gulp-zip/node_modules/vinyl/lib/isStream.js | 5 - .../gulp-zip/node_modules/vinyl/package.json | 37 -- 48 files changed, 1919 deletions(-) delete mode 100644 node_modules/gulp-zip/node_modules/clone-stats/LICENSE.md delete mode 100644 node_modules/gulp-zip/node_modules/clone-stats/README.md delete mode 100644 node_modules/gulp-zip/node_modules/clone-stats/index.js delete mode 100644 node_modules/gulp-zip/node_modules/clone-stats/package.json delete mode 100644 node_modules/gulp-zip/node_modules/clone-stats/test.js delete mode 100755 node_modules/gulp-zip/node_modules/gulp-util/LICENSE delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/README.md delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/index.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/PluginError.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/buffer.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/combine.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/env.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/isBuffer.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/isNull.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/isStream.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/log.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/noop.js delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/lib/template.js delete mode 120000 node_modules/gulp-zip/node_modules/gulp-util/node_modules/.bin/dateformat delete mode 100644 node_modules/gulp-zip/node_modules/gulp-util/package.json delete mode 100644 node_modules/gulp-zip/node_modules/lodash._reinterpolate/LICENSE.txt delete mode 100644 node_modules/gulp-zip/node_modules/lodash._reinterpolate/README.md delete mode 100644 node_modules/gulp-zip/node_modules/lodash._reinterpolate/index.js delete mode 100644 node_modules/gulp-zip/node_modules/lodash._reinterpolate/package.json delete mode 100644 node_modules/gulp-zip/node_modules/lodash.template/LICENSE delete mode 100644 node_modules/gulp-zip/node_modules/lodash.template/README.md delete mode 100644 node_modules/gulp-zip/node_modules/lodash.template/index.js delete mode 100644 node_modules/gulp-zip/node_modules/lodash.template/package.json delete mode 100644 node_modules/gulp-zip/node_modules/object-assign/index.js delete mode 100644 node_modules/gulp-zip/node_modules/object-assign/license delete mode 100644 node_modules/gulp-zip/node_modules/object-assign/package.json delete mode 100644 node_modules/gulp-zip/node_modules/object-assign/readme.md delete mode 100644 node_modules/gulp-zip/node_modules/replace-ext/.npmignore delete mode 100644 node_modules/gulp-zip/node_modules/replace-ext/.travis.yml delete mode 100755 node_modules/gulp-zip/node_modules/replace-ext/LICENSE delete mode 100644 node_modules/gulp-zip/node_modules/replace-ext/README.md delete mode 100644 node_modules/gulp-zip/node_modules/replace-ext/index.js delete mode 100644 node_modules/gulp-zip/node_modules/replace-ext/package.json delete mode 100644 node_modules/gulp-zip/node_modules/replace-ext/test/main.js delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/LICENSE delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/README.md delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/index.js delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/lib/cloneBuffer.js delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/lib/inspectStream.js delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/lib/isBuffer.js delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/lib/isNull.js delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/lib/isStream.js delete mode 100644 node_modules/gulp-zip/node_modules/vinyl/package.json (limited to 'node_modules/gulp-zip') diff --git a/node_modules/gulp-zip/node_modules/clone-stats/LICENSE.md b/node_modules/gulp-zip/node_modules/clone-stats/LICENSE.md deleted file mode 100644 index 146cb32a7..000000000 --- a/node_modules/gulp-zip/node_modules/clone-stats/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -## The MIT License (MIT) ## - -Copyright (c) 2014 Hugh Kennedy - -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-zip/node_modules/clone-stats/README.md b/node_modules/gulp-zip/node_modules/clone-stats/README.md deleted file mode 100644 index 8b12b6fa5..000000000 --- a/node_modules/gulp-zip/node_modules/clone-stats/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# clone-stats [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/clone-stats&title=clone-stats&description=hughsk/clone-stats%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) # - -Safely clone node's -[`fs.Stats`](http://nodejs.org/api/fs.html#fs_class_fs_stats) instances without -losing their class methods, i.e. `stat.isDirectory()` and co. - -## Usage ## - -[![clone-stats](https://nodei.co/npm/clone-stats.png?mini=true)](https://nodei.co/npm/clone-stats) - -### `copy = require('clone-stats')(stat)` ### - -Returns a clone of the original `fs.Stats` instance (`stat`). - -## License ## - -MIT. See [LICENSE.md](http://github.com/hughsk/clone-stats/blob/master/LICENSE.md) for details. diff --git a/node_modules/gulp-zip/node_modules/clone-stats/index.js b/node_modules/gulp-zip/node_modules/clone-stats/index.js deleted file mode 100644 index e797cfe6e..000000000 --- a/node_modules/gulp-zip/node_modules/clone-stats/index.js +++ /dev/null @@ -1,13 +0,0 @@ -var Stat = require('fs').Stats - -module.exports = cloneStats - -function cloneStats(stats) { - var replacement = new Stat - - Object.keys(stats).forEach(function(key) { - replacement[key] = stats[key] - }) - - return replacement -} diff --git a/node_modules/gulp-zip/node_modules/clone-stats/package.json b/node_modules/gulp-zip/node_modules/clone-stats/package.json deleted file mode 100644 index 2880625c1..000000000 --- a/node_modules/gulp-zip/node_modules/clone-stats/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "clone-stats", - "description": "Safely clone node's fs.Stats instances without losing their class methods", - "version": "0.0.1", - "main": "index.js", - "browser": "index.js", - "dependencies": {}, - "devDependencies": { - "tape": "~2.3.2" - }, - "scripts": { - "test": "node test" - }, - "author": "Hugh Kennedy (http://hughsk.io/)", - "license": "MIT", - "repository": { - "type": "git", - "url": "git://github.com/hughsk/clone-stats" - }, - "bugs": { - "url": "https://github.com/hughsk/clone-stats/issues" - }, - "homepage": "https://github.com/hughsk/clone-stats", - "keywords": [ - "stats", - "fs", - "clone", - "copy", - "prototype" - ] -} diff --git a/node_modules/gulp-zip/node_modules/clone-stats/test.js b/node_modules/gulp-zip/node_modules/clone-stats/test.js deleted file mode 100644 index e4bb2814d..000000000 --- a/node_modules/gulp-zip/node_modules/clone-stats/test.js +++ /dev/null @@ -1,36 +0,0 @@ -var test = require('tape') -var clone = require('./') -var fs = require('fs') - -test('file', function(t) { - compare(t, fs.statSync(__filename)) - t.end() -}) - -test('directory', function(t) { - compare(t, fs.statSync(__dirname)) - t.end() -}) - -function compare(t, stat) { - var copy = clone(stat) - - t.deepEqual(stat, copy, 'clone has equal properties') - t.ok(stat instanceof fs.Stats, 'original is an fs.Stat') - t.ok(copy instanceof fs.Stats, 'copy is an fs.Stat') - - ;['isDirectory' - , 'isFile' - , 'isBlockDevice' - , 'isCharacterDevice' - , 'isSymbolicLink' - , 'isFIFO' - , 'isSocket' - ].forEach(function(method) { - t.equal( - stat[method].call(stat) - , copy[method].call(copy) - , 'equal value for stat.' + method + '()' - ) - }) -} diff --git a/node_modules/gulp-zip/node_modules/gulp-util/LICENSE b/node_modules/gulp-zip/node_modules/gulp-util/LICENSE deleted file mode 100755 index 7cbe012c6..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2014 Fractal - -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-zip/node_modules/gulp-util/README.md b/node_modules/gulp-zip/node_modules/gulp-util/README.md deleted file mode 100644 index 8c25a4d62..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/README.md +++ /dev/null @@ -1,146 +0,0 @@ -# gulp-util [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] - -## Information - - - - - - - - - - - - - -
Packagegulp-util
DescriptionUtility functions for gulp plugins
Node Version>= 0.10
- -## Usage - -```javascript -var gutil = require('gulp-util'); - -gutil.log('stuff happened', 'Really it did', gutil.colors.magenta('123')); -gutil.beep(); - -gutil.replaceExtension('file.coffee', '.js'); // file.js - -var opt = { - name: 'todd', - file: someGulpFile -}; -gutil.template('test <%= name %> <%= file.path %>', opt) // test todd /js/hi.js -``` - -### log(msg...) - -Logs stuff. Already prefixed with [gulp] and all that. If you pass in multiple arguments it will join them by a space. - -The default gulp coloring using gutil.colors.: -``` -values (files, module names, etc.) = cyan -numbers (times, counts, etc) = magenta -``` - -### colors - -Is an instance of [chalk](https://github.com/sindresorhus/chalk). - -### replaceExtension(path, newExtension) - -Replaces a file extension in a path. Returns the new path. - -### isStream(obj) - -Returns true or false if an object is a stream. - -### isBuffer(obj) - -Returns true or false if an object is a Buffer. - -### template(string[, data]) - -This is a lodash.template function wrapper. You must pass in a valid gulp file object so it is available to the user or it will error. You can not configure any of the delimiters. Look at the [lodash docs](http://lodash.com/docs#template) for more info. - -## new File(obj) - -This is just [vinyl](https://github.com/wearefractal/vinyl) - -```javascript -var file = new gutil.File({ - base: path.join(__dirname, './fixtures/'), - cwd: __dirname, - path: path.join(__dirname, './fixtures/test.coffee') -}); -``` - -## noop() - -Returns a stream that does nothing but pass data straight through. - -```javascript -// gulp should be called like this : -// $ gulp --type production -gulp.task('scripts', function() { - gulp.src('src/**/*.js') - .pipe(concat('script.js')) - .pipe(gutil.env.type === 'production' ? uglify() : gutil.noop()) - .pipe(gulp.dest('dist/')); -}); -``` - -## buffer(cb) - -This is similar to es.wait but instead of buffering text into one string it buffers anything into an array (so very useful for file objects). - -Returns a stream that can be piped to. - -The stream will emit one data event after the stream piped to it has ended. The data will be the same array passed to the callback. - -Callback is optional and receives two arguments: error and data - -```javascript -gulp.src('stuff/*.js') - .pipe(gutil.buffer(function(err, files) { - - })); -``` - -## new PluginError(pluginName, message[, options]) - -- pluginName should be the module name of your plugin -- message can be a string or an existing error -- By default the stack will not be shown. Set `options.showStack` to true if you think the stack is important for your error. -- If you pass an error in as the message the stack will be pulled from that, otherwise one will be created. -- Note that if you pass in a custom stack string you need to include the message along with that. -- Error properties will be included in `err.toString()`. Can be omitted by including `{showProperties: false}` in the options. - -These are all acceptable forms of instantiation: - -```javascript -var err = new gutil.PluginError('test', { - message: 'something broke' -}); - -var err = new gutil.PluginError({ - plugin: 'test', - message: 'something broke' -}); - -var err = new gutil.PluginError('test', 'something broke'); - -var err = new gutil.PluginError('test', 'something broke', {showStack: true}); - -var existingError = new Error('OMG'); -var err = new gutil.PluginError('test', existingError, {showStack: true}); -``` - -[npm-url]: https://www.npmjs.com/package/gulp-util -[npm-image]: https://badge.fury.io/js/gulp-util.svg -[travis-url]: https://travis-ci.org/gulpjs/gulp-util -[travis-image]: https://img.shields.io/travis/gulpjs/gulp-util.svg?branch=master -[coveralls-url]: https://coveralls.io/r/gulpjs/gulp-util -[coveralls-image]: https://img.shields.io/coveralls/gulpjs/gulp-util.svg -[depstat-url]: https://david-dm.org/gulpjs/gulp-util -[depstat-image]: https://david-dm.org/gulpjs/gulp-util.svg diff --git a/node_modules/gulp-zip/node_modules/gulp-util/index.js b/node_modules/gulp-zip/node_modules/gulp-util/index.js deleted file mode 100644 index 199713c94..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/index.js +++ /dev/null @@ -1,18 +0,0 @@ -module.exports = { - File: require('vinyl'), - replaceExtension: require('replace-ext'), - colors: require('chalk'), - date: require('dateformat'), - log: require('./lib/log'), - template: require('./lib/template'), - env: require('./lib/env'), - beep: require('beeper'), - noop: require('./lib/noop'), - isStream: require('./lib/isStream'), - isBuffer: require('./lib/isBuffer'), - isNull: require('./lib/isNull'), - linefeed: '\n', - combine: require('./lib/combine'), - buffer: require('./lib/buffer'), - PluginError: require('./lib/PluginError') -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/PluginError.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/PluginError.js deleted file mode 100644 index d60159ab1..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/PluginError.js +++ /dev/null @@ -1,130 +0,0 @@ -var util = require('util'); -var arrayDiffer = require('array-differ'); -var arrayUniq = require('array-uniq'); -var chalk = require('chalk'); -var objectAssign = require('object-assign'); - -var nonEnumberableProperties = ['name', 'message', 'stack']; -var propertiesNotToDisplay = nonEnumberableProperties.concat(['plugin', 'showStack', 'showProperties', '__safety', '_stack']); - -// wow what a clusterfuck -var parseOptions = function(plugin, message, opt) { - opt = opt || {}; - if (typeof plugin === 'object') { - opt = plugin; - } else { - if (message instanceof Error) { - opt.error = message; - } else if (typeof message === 'object') { - opt = message; - } else { - opt.message = message; - } - opt.plugin = plugin; - } - - return objectAssign({ - showStack: false, - showProperties: true - }, opt); -}; - -function PluginError(plugin, message, opt) { - if (!(this instanceof PluginError)) throw new Error('Call PluginError using new'); - - Error.call(this); - - var options = parseOptions(plugin, message, opt); - var self = this; - - // if options has an error, grab details from it - if (options.error) { - // These properties are not enumerable, so we have to add them explicitly. - arrayUniq(Object.keys(options.error).concat(nonEnumberableProperties)) - .forEach(function(prop) { - self[prop] = options.error[prop]; - }); - } - - var properties = ['name', 'message', 'fileName', 'lineNumber', 'stack', 'showStack', 'showProperties', 'plugin']; - - // options object can override - properties.forEach(function(prop) { - if (prop in options) this[prop] = options[prop]; - }, this); - - // defaults - if (!this.name) this.name = 'Error'; - - if (!this.stack) { - // Error.captureStackTrace appends a stack property which relies on the toString method of the object it is applied to. - // Since we are using our own toString method which controls when to display the stack trace if we don't go through this - // safety object, then we'll get stack overflow problems. - var safety = { - toString: function() { - return this._messageWithDetails() + '\nStack:'; - }.bind(this) - }; - Error.captureStackTrace(safety, arguments.callee || this.constructor); - this.__safety = safety; - } - - if (!this.plugin) throw new Error('Missing plugin name'); - if (!this.message) throw new Error('Missing error message'); -} - -util.inherits(PluginError, Error); - -PluginError.prototype._messageWithDetails = function() { - var messageWithDetails = 'Message:\n ' + this.message; - var details = this._messageDetails(); - - if (details !== '') { - messageWithDetails += '\n' + details; - } - - return messageWithDetails; -}; - -PluginError.prototype._messageDetails = function() { - if (!this.showProperties) { - return ''; - } - - var properties = arrayDiffer(Object.keys(this), propertiesNotToDisplay); - - if (properties.length === 0) { - return ''; - } - - var self = this; - properties = properties.map(function stringifyProperty(prop) { - return ' ' + prop + ': ' + self[prop]; - }); - - return 'Details:\n' + properties.join('\n'); -}; - -PluginError.prototype.toString = function () { - var sig = chalk.red(this.name) + ' in plugin \'' + chalk.cyan(this.plugin) + '\''; - var detailsWithStack = function(stack) { - return this._messageWithDetails() + '\nStack:\n' + stack; - }.bind(this); - - var msg; - if (this.showStack) { - if (this.__safety) { // There is no wrapped error, use the stack captured in the PluginError ctor - msg = this.__safety.stack; - } else if (this._stack) { - msg = detailsWithStack(this._stack); - } else { // Stack from wrapped error - msg = detailsWithStack(this.stack); - } - } else { - msg = this._messageWithDetails(); - } - - return sig + '\n' + msg; -}; - -module.exports = PluginError; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/buffer.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/buffer.js deleted file mode 100644 index 26c940db1..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/buffer.js +++ /dev/null @@ -1,15 +0,0 @@ -var through = require('through2'); - -module.exports = function(fn) { - var buf = []; - var end = function(cb) { - this.push(buf); - cb(); - if(fn) fn(null, buf); - }; - var push = function(data, enc, cb) { - buf.push(data); - cb(); - }; - return through.obj(push, end); -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/combine.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/combine.js deleted file mode 100644 index f20712d20..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/combine.js +++ /dev/null @@ -1,11 +0,0 @@ -var pipeline = require('multipipe'); - -module.exports = function(){ - var args = arguments; - if (args.length === 1 && Array.isArray(args[0])) { - args = args[0]; - } - return function(){ - return pipeline.apply(pipeline, args); - }; -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/env.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/env.js deleted file mode 100644 index ee17c0e30..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/env.js +++ /dev/null @@ -1,4 +0,0 @@ -var parseArgs = require('minimist'); -var argv = parseArgs(process.argv.slice(2)); - -module.exports = argv; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/isBuffer.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/isBuffer.js deleted file mode 100644 index 7c52f78c9..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/isBuffer.js +++ /dev/null @@ -1,7 +0,0 @@ -var buf = require('buffer'); -var Buffer = buf.Buffer; - -// could use Buffer.isBuffer but this is the same exact thing... -module.exports = function(o) { - return typeof o === 'object' && o instanceof Buffer; -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/isNull.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/isNull.js deleted file mode 100644 index 7f22c63ae..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/isNull.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = function(v) { - return v === null; -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/isStream.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/isStream.js deleted file mode 100644 index 6b54e123b..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/isStream.js +++ /dev/null @@ -1,5 +0,0 @@ -var Stream = require('stream').Stream; - -module.exports = function(o) { - return !!o && o instanceof Stream; -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/log.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/log.js deleted file mode 100644 index bb843beef..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/log.js +++ /dev/null @@ -1,14 +0,0 @@ -var hasGulplog = require('has-gulplog'); - -module.exports = function(){ - if(hasGulplog()){ - // specifically deferring loading here to keep from registering it globally - var gulplog = require('gulplog'); - gulplog.info.apply(gulplog, arguments); - } else { - // specifically defering loading because it might not be used - var fancylog = require('fancy-log'); - fancylog.apply(null, arguments); - } - return this; -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/noop.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/noop.js deleted file mode 100644 index 7862cb161..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/noop.js +++ /dev/null @@ -1,5 +0,0 @@ -var through = require('through2'); - -module.exports = function () { - return through.obj(); -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/lib/template.js b/node_modules/gulp-zip/node_modules/gulp-util/lib/template.js deleted file mode 100644 index eef3bb376..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/lib/template.js +++ /dev/null @@ -1,23 +0,0 @@ -var template = require('lodash.template'); -var reEscape = require('lodash._reescape'); -var reEvaluate = require('lodash._reevaluate'); -var reInterpolate = require('lodash._reinterpolate'); - -var forcedSettings = { - escape: reEscape, - evaluate: reEvaluate, - interpolate: reInterpolate -}; - -module.exports = function(tmpl, data) { - var fn = template(tmpl, forcedSettings); - - var wrapped = function(o) { - if (typeof o === 'undefined' || typeof o.file === 'undefined') { - throw new Error('Failed to provide the current file as "file" to the template'); - } - return fn(o); - }; - - return (data ? wrapped(data) : wrapped); -}; diff --git a/node_modules/gulp-zip/node_modules/gulp-util/node_modules/.bin/dateformat b/node_modules/gulp-zip/node_modules/gulp-util/node_modules/.bin/dateformat deleted file mode 120000 index 2a6f7e6d6..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/node_modules/.bin/dateformat +++ /dev/null @@ -1 +0,0 @@ -../../../../../dateformat/bin/cli.js \ No newline at end of file diff --git a/node_modules/gulp-zip/node_modules/gulp-util/package.json b/node_modules/gulp-zip/node_modules/gulp-util/package.json deleted file mode 100644 index 7ef3b82d7..000000000 --- a/node_modules/gulp-zip/node_modules/gulp-util/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "gulp-util", - "description": "Utility functions for gulp plugins", - "version": "3.0.7", - "repository": "gulpjs/gulp-util", - "author": "Fractal (http://wearefractal.com/)", - "files": [ - "index.js", - "lib" - ], - "dependencies": { - "array-differ": "^1.0.0", - "array-uniq": "^1.0.2", - "beeper": "^1.0.0", - "chalk": "^1.0.0", - "dateformat": "^1.0.11", - "fancy-log": "^1.1.0", - "gulplog": "^1.0.0", - "has-gulplog": "^0.1.0", - "lodash._reescape": "^3.0.0", - "lodash._reevaluate": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.template": "^3.0.0", - "minimist": "^1.1.0", - "multipipe": "^0.1.2", - "object-assign": "^3.0.0", - "replace-ext": "0.0.1", - "through2": "^2.0.0", - "vinyl": "^0.5.0" - }, - "devDependencies": { - "buffer-equal": "^0.0.1", - "coveralls": "^2.11.2", - "event-stream": "^3.1.7", - "istanbul": "^0.3.5", - "istanbul-coveralls": "^1.0.1", - "jshint": "^2.5.11", - "lodash.templatesettings": "^3.0.0", - "mocha": "^2.0.1", - "rimraf": "^2.2.8", - "should": "^7.0.1" - }, - "scripts": { - "test": "jshint *.js lib/*.js test/*.js && mocha", - "coveralls": "istanbul cover _mocha --report lcovonly && istanbul-coveralls" - }, - "engines": { - "node": ">=0.10" - }, - "license": "MIT" -} diff --git a/node_modules/gulp-zip/node_modules/lodash._reinterpolate/LICENSE.txt b/node_modules/gulp-zip/node_modules/lodash._reinterpolate/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/node_modules/gulp-zip/node_modules/lodash._reinterpolate/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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-zip/node_modules/lodash._reinterpolate/README.md b/node_modules/gulp-zip/node_modules/lodash._reinterpolate/README.md deleted file mode 100644 index 1423e502f..000000000 --- a/node_modules/gulp-zip/node_modules/lodash._reinterpolate/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reinterpolate v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reInterpolate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._reinterpolate -``` - -In Node.js/io.js: - -```js -var reInterpolate = require('lodash._reinterpolate'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._reinterpolate) for more details. diff --git a/node_modules/gulp-zip/node_modules/lodash._reinterpolate/index.js b/node_modules/gulp-zip/node_modules/lodash._reinterpolate/index.js deleted file mode 100644 index 5c06abcf3..000000000 --- a/node_modules/gulp-zip/node_modules/lodash._reinterpolate/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reInterpolate = /<%=([\s\S]+?)%>/g; - -module.exports = reInterpolate; diff --git a/node_modules/gulp-zip/node_modules/lodash._reinterpolate/package.json b/node_modules/gulp-zip/node_modules/lodash._reinterpolate/package.json deleted file mode 100644 index 4cc9f1a53..000000000 --- a/node_modules/gulp-zip/node_modules/lodash._reinterpolate/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "lodash._reinterpolate", - "version": "3.0.0", - "description": "The modern build of lodash’s internal `reInterpolate` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/node_modules/gulp-zip/node_modules/lodash.template/LICENSE b/node_modules/gulp-zip/node_modules/lodash.template/LICENSE deleted file mode 100644 index 9cd87e5dc..000000000 --- a/node_modules/gulp-zip/node_modules/lodash.template/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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-zip/node_modules/lodash.template/README.md b/node_modules/gulp-zip/node_modules/lodash.template/README.md deleted file mode 100644 index f542f713b..000000000 --- a/node_modules/gulp-zip/node_modules/lodash.template/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash.template v3.6.2 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.template` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.template -``` - -In Node.js/io.js: - -```js -var template = require('lodash.template'); -``` - -See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/3.6.2-npm-packages/lodash.template) for more details. diff --git a/node_modules/gulp-zip/node_modules/lodash.template/index.js b/node_modules/gulp-zip/node_modules/lodash.template/index.js deleted file mode 100644 index e5a9629b9..000000000 --- a/node_modules/gulp-zip/node_modules/lodash.template/index.js +++ /dev/null @@ -1,389 +0,0 @@ -/** - * lodash 3.6.2 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var baseCopy = require('lodash._basecopy'), - baseToString = require('lodash._basetostring'), - baseValues = require('lodash._basevalues'), - isIterateeCall = require('lodash._isiterateecall'), - reInterpolate = require('lodash._reinterpolate'), - keys = require('lodash.keys'), - restParam = require('lodash.restparam'), - templateSettings = require('lodash.templatesettings'); - -/** `Object#toString` result references. */ -var errorTag = '[object Error]'; - -/** Used to match empty string literals in compiled template source. */ -var reEmptyStringLeading = /\b__p \+= '';/g, - reEmptyStringMiddle = /\b(__p \+=) '' \+/g, - reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - -/** Used to match [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). */ -var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - -/** Used to ensure capturing order of template delimiters. */ -var reNoMatch = /($^)/; - -/** Used to match unescaped characters in compiled string literals. */ -var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - -/** Used to escape characters for inclusion in compiled string literals. */ -var stringEscapes = { - '\\': '\\', - "'": "'", - '\n': 'n', - '\r': 'r', - '\u2028': 'u2028', - '\u2029': 'u2029' -}; - -/** - * Used by `_.template` to escape characters for inclusion in compiled string literals. - * - * @private - * @param {string} chr The matched character to escape. - * @returns {string} Returns the escaped character. - */ -function escapeStringChar(chr) { - return '\\' + stringEscapes[chr]; -} - -/** - * Checks if `value` is object-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** Used for native method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objToString = objectProto.toString; - -/** - * Used by `_.template` to customize its `_.assign` use. - * - * **Note:** This function is like `assignDefaults` except that it ignores - * inherited property values when checking if a property is `undefined`. - * - * @private - * @param {*} objectValue The destination object property value. - * @param {*} sourceValue The source object property value. - * @param {string} key The key associated with the object and source values. - * @param {Object} object The destination object. - * @returns {*} Returns the value to assign to the destination object. - */ -function assignOwnDefaults(objectValue, sourceValue, key, object) { - return (objectValue === undefined || !hasOwnProperty.call(object, key)) - ? sourceValue - : objectValue; -} - -/** - * A specialized version of `_.assign` for customizing assigned values without - * support for argument juggling, multiple sources, and `this` binding `customizer` - * functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {Function} customizer The function to customize assigned values. - * @returns {Object} Returns `object`. - */ -function assignWith(object, source, customizer) { - var index = -1, - props = keys(source), - length = props.length; - - while (++index < length) { - var key = props[index], - value = object[key], - result = customizer(value, source[key], key, object, source); - - if ((result === result ? (result !== value) : (value === value)) || - (value === undefined && !(key in object))) { - object[key] = result; - } - } - return object; -} - -/** - * The base implementation of `_.assign` without support for argument juggling, - * multiple sources, and `customizer` functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @returns {Object} Returns `object`. - */ -function baseAssign(object, source) { - return source == null - ? object - : baseCopy(source, keys(source), object); -} - -/** - * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, - * `SyntaxError`, `TypeError`, or `URIError` object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an error object, else `false`. - * @example - * - * _.isError(new Error); - * // => true - * - * _.isError(Error); - * // => false - */ -function isError(value) { - return isObjectLike(value) && typeof value.message == 'string' && objToString.call(value) == errorTag; -} - -/** - * Creates a compiled template function that can interpolate data properties - * in "interpolate" delimiters, HTML-escape interpolated data properties in - * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data - * properties may be accessed as free variables in the template. If a setting - * object is provided it takes precedence over `_.templateSettings` values. - * - * **Note:** In the development build `_.template` utilizes - * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) - * for easier debugging. - * - * For more information on precompiling templates see - * [lodash's custom builds documentation](https://lodash.com/custom-builds). - * - * For more information on Chrome extension sandboxes see - * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). - * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The template string. - * @param {Object} [options] The options object. - * @param {RegExp} [options.escape] The HTML "escape" delimiter. - * @param {RegExp} [options.evaluate] The "evaluate" delimiter. - * @param {Object} [options.imports] An object to import into the template as free variables. - * @param {RegExp} [options.interpolate] The "interpolate" delimiter. - * @param {string} [options.sourceURL] The sourceURL of the template's compiled source. - * @param {string} [options.variable] The data object variable name. - * @param- {Object} [otherOptions] Enables the legacy `options` param signature. - * @returns {Function} Returns the compiled template function. - * @example - * - * // using the "interpolate" delimiter to create a compiled template - * var compiled = _.template('hello <%= user %>!'); - * compiled({ 'user': 'fred' }); - * // => 'hello fred!' - * - * // using the HTML "escape" delimiter to escape data property values - * var compiled = _.template('<%- value %>'); - * compiled({ 'value': '