diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-10 03:43:44 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-10 03:43:44 +0200 |
commit | abd94a7f5a50f43c797a11b53549ae48fff667c3 (patch) | |
tree | ab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/gulp-debug | |
parent | a0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff) | |
download | wallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz |
add node_modules to address #4364
Diffstat (limited to 'node_modules/gulp-debug')
-rw-r--r-- | node_modules/gulp-debug/index.js | 45 | ||||
-rw-r--r-- | node_modules/gulp-debug/license | 21 | ||||
-rw-r--r-- | node_modules/gulp-debug/package.json | 112 | ||||
-rw-r--r-- | node_modules/gulp-debug/readme.md | 54 |
4 files changed, 232 insertions, 0 deletions
diff --git a/node_modules/gulp-debug/index.js b/node_modules/gulp-debug/index.js new file mode 100644 index 000000000..94623fd1c --- /dev/null +++ b/node_modules/gulp-debug/index.js @@ -0,0 +1,45 @@ +'use strict'; +var path = require('path'); +var gutil = require('gulp-util'); +var through = require('through2'); +var tildify = require('tildify'); +var stringifyObject = require('stringify-object'); +var chalk = require('chalk'); +var objectAssign = require('object-assign'); +var plur = require('plur'); +var prop = chalk.blue; + +module.exports = function (opts) { + opts = objectAssign({ + title: 'gulp-debug:', + minimal: true + }, opts); + + if (process.argv.indexOf('--verbose') !== -1) { + opts.verbose = true; + opts.minimal = false; + } + + var count = 0; + + return through.obj(function (file, enc, cb) { + var full = + '\n' + + (file.cwd ? 'cwd: ' + prop(tildify(file.cwd)) : '') + + (file.base ? '\nbase: ' + prop(tildify(file.base)) : '') + + (file.path ? '\npath: ' + prop(tildify(file.path)) : '') + + (file.stat && opts.verbose ? '\nstat:' + prop(stringifyObject(file.stat, {indent: ' '}).replace(/[{}]/g, '').trimRight()) : '') + + '\n'; + + var output = opts.minimal ? prop(path.relative(process.cwd(), file.path)) : full; + + count++; + + gutil.log(opts.title + ' ' + output); + + cb(null, file); + }, function (cb) { + gutil.log(opts.title + ' ' + chalk.green(count + ' ' + plur('item', count))); + cb(); + }); +}; diff --git a/node_modules/gulp-debug/license b/node_modules/gulp-debug/license new file mode 100644 index 000000000..654d0bfe9 --- /dev/null +++ b/node_modules/gulp-debug/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +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-debug/package.json b/node_modules/gulp-debug/package.json new file mode 100644 index 000000000..69eacb01a --- /dev/null +++ b/node_modules/gulp-debug/package.json @@ -0,0 +1,112 @@ +{ + "_args": [ + [ + { + "raw": "gulp-debug@^2.1.2", + "scope": null, + "escapedName": "gulp-debug", + "name": "gulp-debug", + "rawSpec": "^2.1.2", + "spec": ">=2.1.2 <3.0.0", + "type": "range" + }, + "/home/dold/repos/taler/wallet-webex" + ] + ], + "_from": "gulp-debug@>=2.1.2 <3.0.0", + "_id": "gulp-debug@2.1.2", + "_inCache": true, + "_location": "/gulp-debug", + "_nodeVersion": "4.1.1", + "_npmUser": { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + }, + "_npmVersion": "2.14.4", + "_phantomChildren": {}, + "_requested": { + "raw": "gulp-debug@^2.1.2", + "scope": null, + "escapedName": "gulp-debug", + "name": "gulp-debug", + "rawSpec": "^2.1.2", + "spec": ">=2.1.2 <3.0.0", + "type": "range" + }, + "_requiredBy": [ + "#DEV:/" + ], + "_resolved": "https://registry.npmjs.org/gulp-debug/-/gulp-debug-2.1.2.tgz", + "_shasum": "2f5fe5f64bcd1f4cf189c160e080c8ad06543094", + "_shrinkwrap": null, + "_spec": "gulp-debug@^2.1.2", + "_where": "/home/dold/repos/taler/wallet-webex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "http://sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/gulp-debug/issues" + }, + "dependencies": { + "chalk": "^1.0.0", + "gulp-util": "^3.0.0", + "object-assign": "^4.0.1", + "plur": "^2.0.0", + "stringify-object": "^2.3.0", + "through2": "^2.0.0", + "tildify": "^1.1.2" + }, + "description": "Debug vinyl file streams to see what files are run through your gulp pipeline", + "devDependencies": { + "gulp": "^3.8.10", + "mocha": "*", + "proxyquire": "^1.0.1", + "sinon": "^1.9.1", + "strip-ansi": "^3.0.0" + }, + "directories": {}, + "dist": { + "shasum": "2f5fe5f64bcd1f4cf189c160e080c8ad06543094", + "tarball": "https://registry.npmjs.org/gulp-debug/-/gulp-debug-2.1.2.tgz" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "gitHead": "e210ff710bff3333eccdee6f39d4a2b6ec2dbbbf", + "homepage": "https://github.com/sindresorhus/gulp-debug", + "keywords": [ + "gulpplugin", + "debug", + "debugging", + "inspect", + "log", + "logger", + "vinyl", + "file", + "inspect", + "fs" + ], + "license": "MIT", + "maintainers": [ + { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + } + ], + "name": "gulp-debug", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/gulp-debug.git" + }, + "scripts": { + "test": "mocha" + }, + "version": "2.1.2" +} diff --git a/node_modules/gulp-debug/readme.md b/node_modules/gulp-debug/readme.md new file mode 100644 index 000000000..ff1206367 --- /dev/null +++ b/node_modules/gulp-debug/readme.md @@ -0,0 +1,54 @@ +# gulp-debug [![Build Status](https://travis-ci.org/sindresorhus/gulp-debug.svg?branch=master)](https://travis-ci.org/sindresorhus/gulp-debug) + +> Debug [vinyl](https://github.com/wearefractal/vinyl) file streams to see what files are run through your gulp pipeline + +![](screenshot.png) + + +## Install + +``` +$ npm install --save-dev gulp-debug +``` + + +## Usage + +```js +var gulp = require('gulp'); +var debug = require('gulp-debug'); + +gulp.task('default', function () { + return gulp.src('foo.js') + .pipe(debug({title: 'unicorn:'})) + .pipe(gulp.dest('dist')); +}); +``` + + +## API + +### debug(options) + +#### options + +##### title + +Type: `string` +Default: `'gulp-debug:'` + +Give it a custom title so it's possible to distinguish the output of multiple instances logging at once. + +##### minimal + +Type: `boolean` +Default: `true` + +By default only relative paths are shown. Turn off minimal mode to also show `cwd`, `base`, `path`. + +The [`stat` property](http://nodejs.org/api/fs.html#fs_class_fs_stats) will be shown when you run gulp in verbose mode: `gulp --verbose`. + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) |