From abd94a7f5a50f43c797a11b53549ae48fff667c3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 10 Oct 2016 03:43:44 +0200 Subject: add node_modules to address #4364 --- node_modules/gulp-gzip/.npmignore | 11 + node_modules/gulp-gzip/LICENSE | 7 + node_modules/gulp-gzip/README.md | 142 +++ .../gulp-gzip/examples/advanced/gulpfile.js | 32 + node_modules/gulp-gzip/examples/files/big.txt | 1 + node_modules/gulp-gzip/examples/files/small.txt | 1 + node_modules/gulp-gzip/examples/simple/gulpfile.js | 16 + node_modules/gulp-gzip/gulpfile.js | 40 + node_modules/gulp-gzip/index.js | 104 +++ node_modules/gulp-gzip/lib/compress.js | 88 ++ node_modules/gulp-gzip/lib/utils.js | 43 + node_modules/gulp-gzip/node_modules/.bin/has-ansi | 1 + .../gulp-gzip/node_modules/.bin/strip-ansi | 1 + .../gulp-gzip/node_modules/.bin/supports-color | 1 + .../gulp-gzip/node_modules/ansi-regex/index.js | 4 + .../gulp-gzip/node_modules/ansi-regex/package.json | 114 +++ .../gulp-gzip/node_modules/ansi-regex/readme.md | 33 + .../gulp-gzip/node_modules/ansi-styles/index.js | 40 + .../node_modules/ansi-styles/package.json | 108 +++ .../gulp-gzip/node_modules/ansi-styles/readme.md | 70 ++ node_modules/gulp-gzip/node_modules/chalk/index.js | 95 ++ .../gulp-gzip/node_modules/chalk/package.json | 115 +++ .../gulp-gzip/node_modules/chalk/readme.md | 175 ++++ .../gulp-gzip/node_modules/gulp-util/.npmignore | 7 + .../gulp-gzip/node_modules/gulp-util/.travis.yml | 5 + .../gulp-gzip/node_modules/gulp-util/LICENSE | 20 + .../gulp-gzip/node_modules/gulp-util/README.md | 140 +++ .../gulp-gzip/node_modules/gulp-util/index.js | 18 + .../gulp-gzip/node_modules/gulp-util/lib/File.js | 1 + .../node_modules/gulp-util/lib/PluginError.js | 64 ++ .../gulp-gzip/node_modules/gulp-util/lib/beep.js | 3 + .../gulp-gzip/node_modules/gulp-util/lib/buffer.js | 15 + .../gulp-gzip/node_modules/gulp-util/lib/colors.js | 1 + .../node_modules/gulp-util/lib/combine.js | 11 + .../gulp-gzip/node_modules/gulp-util/lib/date.js | 1 + .../gulp-gzip/node_modules/gulp-util/lib/env.js | 4 + .../node_modules/gulp-util/lib/isBuffer.js | 7 + .../gulp-gzip/node_modules/gulp-util/lib/isNull.js | 3 + .../node_modules/gulp-util/lib/isStream.js | 5 + .../node_modules/gulp-util/lib/linefeed.js | 1 + .../gulp-gzip/node_modules/gulp-util/lib/log.js | 10 + .../gulp-gzip/node_modules/gulp-util/lib/noop.js | 5 + .../node_modules/gulp-util/lib/replaceExtension.js | 9 + .../node_modules/gulp-util/lib/template.js | 19 + .../gulp-util/node_modules/through2/.npmignore | 3 + .../gulp-util/node_modules/through2/LICENSE | 39 + .../gulp-util/node_modules/through2/README.md | 140 +++ .../gulp-util/node_modules/through2/package.json | 98 ++ .../gulp-util/node_modules/through2/through2.js | 78 ++ .../gulp-gzip/node_modules/gulp-util/package.json | 112 +++ .../gulp-gzip/node_modules/has-ansi/cli.js | 53 ++ .../gulp-gzip/node_modules/has-ansi/index.js | 4 + .../gulp-gzip/node_modules/has-ansi/package.json | 118 +++ .../gulp-gzip/node_modules/has-ansi/readme.md | 45 + .../node_modules/lodash._reinterpolate/LICENSE.txt | 22 + .../node_modules/lodash._reinterpolate/README.md | 15 + .../node_modules/lodash._reinterpolate/index.js | 13 + .../lodash._reinterpolate/package.json | 111 +++ .../node_modules/lodash.escape/LICENSE.txt | 22 + .../gulp-gzip/node_modules/lodash.escape/README.md | 15 + .../gulp-gzip/node_modules/lodash.escape/index.js | 31 + .../node_modules/lodash.escape/package.json | 121 +++ .../gulp-gzip/node_modules/lodash.keys/LICENSE.txt | 22 + .../gulp-gzip/node_modules/lodash.keys/README.md | 15 + .../gulp-gzip/node_modules/lodash.keys/index.js | 36 + .../node_modules/lodash.keys/package.json | 121 +++ .../node_modules/lodash.template/LICENSE.txt | 22 + .../node_modules/lodash.template/README.md | 15 + .../node_modules/lodash.template/index.js | 216 +++++ .../node_modules/lodash.template/package.json | 124 +++ .../lodash.templatesettings/LICENSE.txt | 22 + .../node_modules/lodash.templatesettings/README.md | 15 + .../node_modules/lodash.templatesettings/index.js | 73 ++ .../lodash.templatesettings/package.json | 119 +++ .../gulp-gzip/node_modules/minimist/.travis.yml | 4 + .../gulp-gzip/node_modules/minimist/LICENSE | 18 + .../node_modules/minimist/example/parse.js | 2 + .../gulp-gzip/node_modules/minimist/index.js | 200 +++++ .../gulp-gzip/node_modules/minimist/package.json | 102 +++ .../node_modules/minimist/readme.markdown | 86 ++ .../node_modules/minimist/test/all_bool.js | 32 + .../gulp-gzip/node_modules/minimist/test/bool.js | 119 +++ .../gulp-gzip/node_modules/minimist/test/dash.js | 31 + .../node_modules/minimist/test/default_bool.js | 20 + .../gulp-gzip/node_modules/minimist/test/dotted.js | 22 + .../gulp-gzip/node_modules/minimist/test/long.js | 31 + .../gulp-gzip/node_modules/minimist/test/num.js | 36 + .../gulp-gzip/node_modules/minimist/test/parse.js | 197 +++++ .../node_modules/minimist/test/parse_modified.js | 9 + .../gulp-gzip/node_modules/minimist/test/short.js | 67 ++ .../node_modules/minimist/test/whitespace.js | 8 + .../node_modules/readable-stream/.npmignore | 5 + .../gulp-gzip/node_modules/readable-stream/LICENSE | 18 + .../node_modules/readable-stream/README.md | 15 + .../node_modules/readable-stream/duplex.js | 1 + .../readable-stream/lib/_stream_duplex.js | 89 ++ .../readable-stream/lib/_stream_passthrough.js | 46 + .../readable-stream/lib/_stream_readable.js | 982 +++++++++++++++++++++ .../readable-stream/lib/_stream_transform.js | 210 +++++ .../readable-stream/lib/_stream_writable.js | 386 ++++++++ .../node_modules/readable-stream/package.json | 113 +++ .../node_modules/readable-stream/passthrough.js | 1 + .../node_modules/readable-stream/readable.js | 11 + .../node_modules/readable-stream/transform.js | 1 + .../node_modules/readable-stream/writable.js | 1 + .../gulp-gzip/node_modules/strip-ansi/cli.js | 39 + .../gulp-gzip/node_modules/strip-ansi/index.js | 6 + .../gulp-gzip/node_modules/strip-ansi/package.json | 117 +++ .../gulp-gzip/node_modules/strip-ansi/readme.md | 43 + .../gulp-gzip/node_modules/supports-color/cli.js | 28 + .../gulp-gzip/node_modules/supports-color/index.js | 32 + .../node_modules/supports-color/package.json | 112 +++ .../node_modules/supports-color/readme.md | 44 + .../gulp-gzip/node_modules/through2/.npmignore | 3 + .../gulp-gzip/node_modules/through2/LICENSE | 39 + .../gulp-gzip/node_modules/through2/README.md | 140 +++ .../through2/node_modules/xtend/.npmignore | 1 + .../through2/node_modules/xtend/LICENCE | 19 + .../through2/node_modules/xtend/Makefile | 4 + .../through2/node_modules/xtend/README.md | 27 + .../through2/node_modules/xtend/has-keys.js | 7 + .../through2/node_modules/xtend/index.js | 25 + .../through2/node_modules/xtend/mutable.js | 25 + .../through2/node_modules/xtend/package.json | 122 +++ .../through2/node_modules/xtend/test.js | 63 ++ .../gulp-gzip/node_modules/through2/package.json | 100 +++ .../gulp-gzip/node_modules/through2/through2.js | 78 ++ .../gulp-gzip/node_modules/vinyl/.npmignore | 6 + .../gulp-gzip/node_modules/vinyl/.travis.yml | 6 + node_modules/gulp-gzip/node_modules/vinyl/LICENSE | 20 + .../gulp-gzip/node_modules/vinyl/README.md | 123 +++ node_modules/gulp-gzip/node_modules/vinyl/index.js | 128 +++ .../node_modules/vinyl/lib/cloneBuffer.js | 7 + .../node_modules/vinyl/lib/inspectStream.js | 12 + .../gulp-gzip/node_modules/vinyl/lib/isBuffer.js | 7 + .../gulp-gzip/node_modules/vinyl/lib/isNull.js | 3 + .../gulp-gzip/node_modules/vinyl/lib/isStream.js | 5 + .../gulp-gzip/node_modules/vinyl/package.json | 101 +++ .../gulp-gzip/node_modules/vinyl/test/File.js | 540 +++++++++++ .../node_modules/vinyl/test/cloneBuffer.js | 28 + .../node_modules/vinyl/test/inspectStream.js | 53 ++ .../gulp-gzip/node_modules/vinyl/test/isBuffer.js | 29 + .../gulp-gzip/node_modules/vinyl/test/isNull.js | 23 + .../gulp-gzip/node_modules/vinyl/test/isStream.js | 29 + .../gulp-gzip/node_modules/xtend/.jshintrc | 30 + .../gulp-gzip/node_modules/xtend/.npmignore | 1 + node_modules/gulp-gzip/node_modules/xtend/LICENCE | 19 + node_modules/gulp-gzip/node_modules/xtend/Makefile | 4 + .../gulp-gzip/node_modules/xtend/README.md | 28 + node_modules/gulp-gzip/node_modules/xtend/index.js | 17 + .../gulp-gzip/node_modules/xtend/mutable.js | 15 + .../gulp-gzip/node_modules/xtend/package.json | 120 +++ node_modules/gulp-gzip/node_modules/xtend/test.js | 63 ++ node_modules/gulp-gzip/package.json | 132 +++ node_modules/gulp-gzip/test/files/big.txt | 1 + node_modules/gulp-gzip/test/files/small.txt | 1 + node_modules/gulp-gzip/test/files/too_small.txt | 1 + node_modules/gulp-gzip/test/test.js | 492 +++++++++++ 158 files changed, 9412 insertions(+) create mode 100755 node_modules/gulp-gzip/.npmignore create mode 100755 node_modules/gulp-gzip/LICENSE create mode 100755 node_modules/gulp-gzip/README.md create mode 100755 node_modules/gulp-gzip/examples/advanced/gulpfile.js create mode 100755 node_modules/gulp-gzip/examples/files/big.txt create mode 100755 node_modules/gulp-gzip/examples/files/small.txt create mode 100755 node_modules/gulp-gzip/examples/simple/gulpfile.js create mode 100755 node_modules/gulp-gzip/gulpfile.js create mode 100755 node_modules/gulp-gzip/index.js create mode 100755 node_modules/gulp-gzip/lib/compress.js create mode 100755 node_modules/gulp-gzip/lib/utils.js create mode 120000 node_modules/gulp-gzip/node_modules/.bin/has-ansi create mode 120000 node_modules/gulp-gzip/node_modules/.bin/strip-ansi create mode 120000 node_modules/gulp-gzip/node_modules/.bin/supports-color create mode 100644 node_modules/gulp-gzip/node_modules/ansi-regex/index.js create mode 100644 node_modules/gulp-gzip/node_modules/ansi-regex/package.json create mode 100644 node_modules/gulp-gzip/node_modules/ansi-regex/readme.md create mode 100644 node_modules/gulp-gzip/node_modules/ansi-styles/index.js create mode 100644 node_modules/gulp-gzip/node_modules/ansi-styles/package.json create mode 100644 node_modules/gulp-gzip/node_modules/ansi-styles/readme.md create mode 100644 node_modules/gulp-gzip/node_modules/chalk/index.js create mode 100644 node_modules/gulp-gzip/node_modules/chalk/package.json create mode 100644 node_modules/gulp-gzip/node_modules/chalk/readme.md create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/.npmignore create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/.travis.yml create mode 100755 node_modules/gulp-gzip/node_modules/gulp-util/LICENSE create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/README.md create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/index.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/File.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/PluginError.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/beep.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/buffer.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/colors.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/combine.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/date.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/env.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/isBuffer.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/isNull.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/isStream.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/linefeed.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/log.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/noop.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/replaceExtension.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/lib/template.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/node_modules/through2/.npmignore create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/node_modules/through2/LICENSE create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/node_modules/through2/README.md create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/node_modules/through2/package.json create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/node_modules/through2/through2.js create mode 100644 node_modules/gulp-gzip/node_modules/gulp-util/package.json create mode 100755 node_modules/gulp-gzip/node_modules/has-ansi/cli.js create mode 100644 node_modules/gulp-gzip/node_modules/has-ansi/index.js create mode 100644 node_modules/gulp-gzip/node_modules/has-ansi/package.json create mode 100644 node_modules/gulp-gzip/node_modules/has-ansi/readme.md create mode 100644 node_modules/gulp-gzip/node_modules/lodash._reinterpolate/LICENSE.txt create mode 100644 node_modules/gulp-gzip/node_modules/lodash._reinterpolate/README.md create mode 100644 node_modules/gulp-gzip/node_modules/lodash._reinterpolate/index.js create mode 100644 node_modules/gulp-gzip/node_modules/lodash._reinterpolate/package.json create mode 100644 node_modules/gulp-gzip/node_modules/lodash.escape/LICENSE.txt create mode 100644 node_modules/gulp-gzip/node_modules/lodash.escape/README.md create mode 100644 node_modules/gulp-gzip/node_modules/lodash.escape/index.js create mode 100644 node_modules/gulp-gzip/node_modules/lodash.escape/package.json create mode 100644 node_modules/gulp-gzip/node_modules/lodash.keys/LICENSE.txt create mode 100644 node_modules/gulp-gzip/node_modules/lodash.keys/README.md create mode 100644 node_modules/gulp-gzip/node_modules/lodash.keys/index.js create mode 100644 node_modules/gulp-gzip/node_modules/lodash.keys/package.json create mode 100644 node_modules/gulp-gzip/node_modules/lodash.template/LICENSE.txt create mode 100644 node_modules/gulp-gzip/node_modules/lodash.template/README.md create mode 100644 node_modules/gulp-gzip/node_modules/lodash.template/index.js create mode 100644 node_modules/gulp-gzip/node_modules/lodash.template/package.json create mode 100644 node_modules/gulp-gzip/node_modules/lodash.templatesettings/LICENSE.txt create mode 100644 node_modules/gulp-gzip/node_modules/lodash.templatesettings/README.md create mode 100644 node_modules/gulp-gzip/node_modules/lodash.templatesettings/index.js create mode 100644 node_modules/gulp-gzip/node_modules/lodash.templatesettings/package.json create mode 100644 node_modules/gulp-gzip/node_modules/minimist/.travis.yml create mode 100644 node_modules/gulp-gzip/node_modules/minimist/LICENSE create mode 100644 node_modules/gulp-gzip/node_modules/minimist/example/parse.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/index.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/package.json create mode 100644 node_modules/gulp-gzip/node_modules/minimist/readme.markdown create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/all_bool.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/bool.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/dash.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/default_bool.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/dotted.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/long.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/num.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/parse.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/parse_modified.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/short.js create mode 100644 node_modules/gulp-gzip/node_modules/minimist/test/whitespace.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/.npmignore create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/LICENSE create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/README.md create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/duplex.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/lib/_stream_readable.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/lib/_stream_transform.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/lib/_stream_writable.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/package.json create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/passthrough.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/readable.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/transform.js create mode 100644 node_modules/gulp-gzip/node_modules/readable-stream/writable.js create mode 100755 node_modules/gulp-gzip/node_modules/strip-ansi/cli.js create mode 100644 node_modules/gulp-gzip/node_modules/strip-ansi/index.js create mode 100644 node_modules/gulp-gzip/node_modules/strip-ansi/package.json create mode 100644 node_modules/gulp-gzip/node_modules/strip-ansi/readme.md create mode 100755 node_modules/gulp-gzip/node_modules/supports-color/cli.js create mode 100644 node_modules/gulp-gzip/node_modules/supports-color/index.js create mode 100644 node_modules/gulp-gzip/node_modules/supports-color/package.json create mode 100644 node_modules/gulp-gzip/node_modules/supports-color/readme.md create mode 100644 node_modules/gulp-gzip/node_modules/through2/.npmignore create mode 100644 node_modules/gulp-gzip/node_modules/through2/LICENSE create mode 100644 node_modules/gulp-gzip/node_modules/through2/README.md create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/.npmignore create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/LICENCE create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/Makefile create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/README.md create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/has-keys.js create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/index.js create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/mutable.js create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/package.json create mode 100644 node_modules/gulp-gzip/node_modules/through2/node_modules/xtend/test.js create mode 100644 node_modules/gulp-gzip/node_modules/through2/package.json create mode 100644 node_modules/gulp-gzip/node_modules/through2/through2.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/.npmignore create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/.travis.yml create mode 100755 node_modules/gulp-gzip/node_modules/vinyl/LICENSE create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/README.md create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/index.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/lib/cloneBuffer.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/lib/inspectStream.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/lib/isBuffer.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/lib/isNull.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/lib/isStream.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/package.json create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/test/File.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/test/cloneBuffer.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/test/inspectStream.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/test/isBuffer.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/test/isNull.js create mode 100644 node_modules/gulp-gzip/node_modules/vinyl/test/isStream.js create mode 100644 node_modules/gulp-gzip/node_modules/xtend/.jshintrc create mode 100644 node_modules/gulp-gzip/node_modules/xtend/.npmignore create mode 100644 node_modules/gulp-gzip/node_modules/xtend/LICENCE create mode 100644 node_modules/gulp-gzip/node_modules/xtend/Makefile create mode 100644 node_modules/gulp-gzip/node_modules/xtend/README.md create mode 100644 node_modules/gulp-gzip/node_modules/xtend/index.js create mode 100644 node_modules/gulp-gzip/node_modules/xtend/mutable.js create mode 100644 node_modules/gulp-gzip/node_modules/xtend/package.json create mode 100644 node_modules/gulp-gzip/node_modules/xtend/test.js create mode 100755 node_modules/gulp-gzip/package.json create mode 100755 node_modules/gulp-gzip/test/files/big.txt create mode 100755 node_modules/gulp-gzip/test/files/small.txt create mode 100755 node_modules/gulp-gzip/test/files/too_small.txt create mode 100755 node_modules/gulp-gzip/test/test.js (limited to 'node_modules/gulp-gzip') diff --git a/node_modules/gulp-gzip/.npmignore b/node_modules/gulp-gzip/.npmignore new file mode 100755 index 000000000..6c82eac7a --- /dev/null +++ b/node_modules/gulp-gzip/.npmignore @@ -0,0 +1,11 @@ +node_modules +.DS_STORE +examples/**.txt +!examples/files/*.txt +examples/**.txt.gz +!examples/files/*.txt.gz +test/**.txt +!test/files/*.txt +test/**.txt.gz +!test/files/*.txt.gz +test/tmp diff --git a/node_modules/gulp-gzip/LICENSE b/node_modules/gulp-gzip/LICENSE new file mode 100755 index 000000000..eafa7f514 --- /dev/null +++ b/node_modules/gulp-gzip/LICENSE @@ -0,0 +1,7 @@ +Copyright (c) 2014 Jeremy Stuckey + +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-gzip/README.md b/node_modules/gulp-gzip/README.md new file mode 100755 index 000000000..807c2c577 --- /dev/null +++ b/node_modules/gulp-gzip/README.md @@ -0,0 +1,142 @@ +gulp-gzip +========= + +Gzip plugin for [gulp](https://github.com/wearefractal/gulp). + +#Install + +``` +npm install --save-dev gulp-gzip +``` + +#Options + +### append `Boolean` + +Appends `.gz` file extension if true. Defaults to true. + +```javascript + gzip({ append: true }) +``` +`filename.txt` becomes `filename.txt.gz`. + +### extension `String` + +Appends an arbitrary extension to the filename. Disables `append` and `preExtension` options. + +```javascript + gzip({ extension: 'zip' }) // note that the `.` should not be included in the extension +``` +`filename.txt` becomes `filename.txt.zip`. + +### preExtension `String` + +Appends an arbitrary pre-extension to the filename. Disables `append` and `extension` options. + +```javascript + gzip({ preExtension: 'gz' }) // note that the `.` should not be included in the extension +``` +`filename.txt` becomes `filename.gz.txt`. + +### threshold `String|Number|Boolean` + +Minimum size required to compress a file. Defaults to false. + +```javascript +gzip({ threshold: '1kb' }) +``` + +```javascript +gzip({ threshold: 1024 }) +``` + +```javascript +gzip({ threshold: true }) +``` + +### gzipOptions `Object` + +Options object to pass through to zlib.Gzip. See [zlib documentation](http://nodejs.org/api/zlib.html#zlib_options) for more information. + +```javascript +gzip({ gzipOptions: { level: 9 } }) +``` + +```javascript +gzip({ gzipOptions: { memLevel: 1 } }) +``` + +### deleteMode `String|Function` + +Some webserver modules such as nginx `gzip_static` looks for `example.html.gz`, serve it if it exists, else the original `example.html` will be served. + +For instance, if `example.html` was 2kb, it would be gzipped and `example.html.gz` was created. + +However, if later `example.html` is modified to content less than the threshold, gulp-gzip will only bypass it. Hence, you will end up with a new `example.html` yet old `example.html.gz`. Your webserver will continue to serve old content (`example.html.gz`). + +Using this option, gulp-gzip will remove `example.html.gz`. + +It takes in the same argument as `gulp.dest` as in `gulp.dest('mydest')`, so it knows where to look for the gzipped files. Defaults to `undefined`. + +```javascript +gzip({ threshold: 1024, deleteMode: 'mydest' }) +``` + +If you have `cwd` as in `gulp.dest('mydest', { cwd: mycwd })`. You can configure it using `deleteModeCwd`. + +```javascript +gzip({ threshold: 1024, deleteMode: 'mydest', deleteModeCwd: mycwd }) +``` + +### skipGrowingFiles `Boolean` + +Some files actually get larger after compression. If true, this option passes along the original, uncompressed file if compression increases the file size. Defaults to false. + +```javascript + gzip({ skipGrowingFiles : true }) +``` + +#Examples + +```javascript +var gulp = require('gulp'); +var gzip = require('gulp-gzip'); + +gulp.task('compress', function() { + gulp.src('./dev/scripts/*.js') + .pipe(gzip()) + .pipe(gulp.dest('./public/scripts')); +}); +``` + +```javascript +var gulp = require('gulp'); +var coffee = require('gulp-coffee'); +var concat = require('gulp-concat'); +var uglify = require('gulp-uglify'); +var gzip = require('gulp-gzip'); + +gulp.task('deployScripts', function() { + gulp.src('./dev/scripts/*.coffee') + .pipe(coffee()) + .pipe(concat('all.js')) + .pipe(uglify()) + .pipe(gzip()) + .pipe(gulp.dest('./public/scripts')); +}); +``` + +```javascript +var gulp = require('gulp'); +var tar = require('gulp-tar'); +var gzip = require('gulp-gzip'); + +gulp.task('tarball', function() { + gulp.src('./files/*') + .pipe(tar('archive.tar')) + .pipe(gzip()) + .pipe(gulp.dest('.')); +}); +``` + +[More examples](https://github.com/jstuckey/gulp-gzip/tree/master/examples). diff --git a/node_modules/gulp-gzip/examples/advanced/gulpfile.js b/node_modules/gulp-gzip/examples/advanced/gulpfile.js new file mode 100755 index 000000000..a2a747df5 --- /dev/null +++ b/node_modules/gulp-gzip/examples/advanced/gulpfile.js @@ -0,0 +1,32 @@ +var clean = require('gulp-clean'); +var gulp = require('gulp'); +var gzip = require('../../index'); + +var config = { + threshold: '1kb' +}; + +gulp.task('clean', function() { + gulp.src('tmp', { read: false }) + .pipe(clean()); +}); + +gulp.task('small', function() { + gulp.src('../files/small.txt') + .pipe(gzip(config)) + .pipe(gulp.dest('tmp')); +}); + +gulp.task('big', function() { + gulp.src('../files/big.txt') + .pipe(gzip(config)) + .pipe(gulp.dest('tmp')); +}); + +gulp.task('large', function() { + gulp.src('../files/large.txt', { buffer: false }) + .pipe(gzip(config)) + .pipe(gulp.dest('tmp')); +}); + +gulp.task('default', ['clean', 'small', 'big', 'large']); diff --git a/node_modules/gulp-gzip/examples/files/big.txt b/node_modules/gulp-gzip/examples/files/big.txt new file mode 100755 index 000000000..61779e6d4 --- /dev/null +++ b/node_modules/gulp-gzip/examples/files/big.txt @@ -0,0 +1 @@ +Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus, eaque animi autem distinctio assumenda. Necessitatibus, dicta, aliquam architecto aut error quaerat at beatae harum modi earum sequi accusantium labore nisi rerum neque nemo et quae dolorem voluptas dolorum blanditiis accusamus repellat illo saepe quisquam alias doloribus non temporibus quasi maiores distinctio eos unde ad ipsam excepturi vel praesentium repudiandae minus amet consequatur suscipit laboriosam qui asperiores possimus exercitationem nesciunt ratione odio reprehenderit deserunt iure! Doloremque deserunt rem vitae iure ipsam esse tempore veritatis voluptate natus blanditiis. Velit, porro, fuga enim quasi voluptatum praesentium ea autem fugit unde non architecto quisquam reprehenderit cumque laboriosam dolore saepe eligendi similique iste quis expedita beatae itaque possimus repellendus officiis nam minima blanditiis numquam voluptatem optio temporibus asperiores adipisci quas necessitatibus cum natus hic provident? Autem, atque, voluptate, dicta, sequi adipisci doloribus aspernatur ipsa beatae rem odio doloremque odit consequuntur vitae cupiditate quos repellendus id eligendi excepturi pariatur molestiae praesentium quasi perspiciatis quaerat quisquam blanditiis architecto minus ad possimus porro illum quibusdam ipsam culpa voluptatibus iste ex earum quae quam laboriosam deleniti in expedita esse! Nihil, laboriosam, rem, consequatur ullam ipsam reiciendis tempora aliquam quos cupiditate saepe facere recusandae tenetur odio nulla officia molestiae atque harum ipsa nobis dolorum voluptatum suscipit consequuntur deleniti iusto delectus hic a numquam neque aliquid asperiores ipsum impedit nisi voluptas beatae facilis culpa eveniet unde animi architecto omnis fugiat magni? Placeat, autem, vero, aspernatur, ab impedit nisi delectus sequi hic aliquid officia cupiditate praesentium voluptates veniam doloremque cumque aliquam enim quas reprehenderit aut dolor possimus inventore saepe fuga in dignissimos ipsam ut et eum sed tempore error a labore beatae incidunt repellat animi perferendis rerum iure tempora odio nam earum nulla asperiores est laboriosam facilis? Perspiciatis, fugiat, veniam, voluptatem ad eligendi optio veritatis autem voluptas deleniti incidunt provident soluta mollitia nesciunt fugit recusandae. Porro, nostrum, ab, inventore velit quidem impedit voluptatum placeat tempora mollitia unde nisi itaque dolorum perspiciatis temporibus excepturi omnis nobis. Itaque, provident, laudantium aperiam unde ex laborum vero quam placeat porro accusantium quia non alias facilis illum corporis dolor voluptatum aspernatur expedita deserunt labore beatae illo nobis hic ea vel omnis velit iste magnam odit asperiores delectus autem praesentium minima recusandae ipsa nisi eligendi ipsam. Est, animi, ipsam natus culpa cumque excepturi molestiae sit tenetur rem aspernatur assumenda laborum sequi sed tempora praesentium rerum reiciendis qui quidem cum possimus. Dolorem, ad delectus temporibus quasi repudiandae dicta repellendus! diff --git a/node_modules/gulp-gzip/examples/files/small.txt b/node_modules/gulp-gzip/examples/files/small.txt new file mode 100755 index 000000000..a18737279 --- /dev/null +++ b/node_modules/gulp-gzip/examples/files/small.txt @@ -0,0 +1 @@ +Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quis, eaque, rerum maxime quod repellat ipsam modi sit voluptatibus quidem et. Mollitia dicta atque modi. Recusandae, doloribus dolores praesentium culpa quisquam quasi maiores aperiam itaque minima incidunt hic in similique quas. Unde, ut nam ipsum doloribus praesentium neque sapiente dolorum beatae totam rem! Tempora, dolorem, nesciunt, dolorum veritatis earum aliquam a quae rem saepe vitae quaerat ex aliquid voluptates eum nobis repellat natus neque voluptatem veniam exercitationem nam eaque iste sequi officia perspiciatis! Earum, hic alias aperiam repellat tenetur labore mollitia unde dolorum eligendi consequatur asperiores neque excepturi officia? Ducimus sed velit ipsa iure libero eos doloremque at eveniet facilis quibusdam! Optio, veniam adipisci eius error sequi. Pariatur, vitae vero quia et illum alias saepe aperiam enim! Deleniti ipsam repellat labore. diff --git a/node_modules/gulp-gzip/examples/simple/gulpfile.js b/node_modules/gulp-gzip/examples/simple/gulpfile.js new file mode 100755 index 000000000..503db6914 --- /dev/null +++ b/node_modules/gulp-gzip/examples/simple/gulpfile.js @@ -0,0 +1,16 @@ +var clean = require('gulp-clean'); +var gulp = require('gulp'); +var gzip = require('../../index'); + +gulp.task('clean', function() { + gulp.src('tmp', { read: false }) + .pipe(clean()); +}); + +gulp.task('compress', ['clean'], function() { + gulp.src('../files/small.txt') + .pipe(gzip()) + .pipe(gulp.dest('tmp')); +}); + +gulp.task('default', ['compress']); diff --git a/node_modules/gulp-gzip/gulpfile.js b/node_modules/gulp-gzip/gulpfile.js new file mode 100755 index 000000000..95ce6781a --- /dev/null +++ b/node_modules/gulp-gzip/gulpfile.js @@ -0,0 +1,40 @@ +var clean = require('gulp-clean'); +var filter = require('gulp-filter'); +var gulp = require('gulp'); +var mocha = require('gulp-mocha'); +var watch = require('gulp-watch'); +var jshint = require('gulp-jshint'); +var stylish = require('jshint-stylish'); + +var root = __dirname; + +gulp.task('clean', function() { + gulp.src([ + 'examples/*/tmp', + 'test/tmp' + ]).pipe(clean()); +}); + +gulp.task('lint', function() { + gulp.src([ 'index.js', 'test/test.js', 'lib/*.js' ]) + .pipe(jshint({ expr: true })) + .pipe(jshint.reporter(stylish)); +}); + +gulp.task('test', function() { + // monkeys are fixing `cwd` for `gulp-mocha` + // node lives in one process/scope/directory + process.chdir(root); + + gulp.src('test/test.js') + .pipe(mocha({ reporter: 'spec', timeout: 1000 })) +}); + +gulp.task('watch', function() { + watch({ + glob: [ 'index.js', 'lib/*.js' , 'test/test.js' ], + read: false + }, ['clean', 'lint', 'test']) +}); + +gulp.task('default', ['watch']); diff --git a/node_modules/gulp-gzip/index.js b/node_modules/gulp-gzip/index.js new file mode 100755 index 000000000..7cda8d324 --- /dev/null +++ b/node_modules/gulp-gzip/index.js @@ -0,0 +1,104 @@ +/*jslint node: true */ +'use strict'; + +var fs = require('fs'); +var path = require('path'); +var gutil = require('gulp-util'); +var through2 = require('through2'); +var PluginError = gutil.PluginError; +var utils = require('./lib/utils'); +var compress = require('./lib/compress.js'); + +var PLUGIN_NAME = 'gulp-gzip'; + +module.exports = function (options) { + + // Combine user defined options with default options + var defaultConfig = { + append: true, + threshold: false, + gzipOptions: {}, + skipGrowingFiles: false + }; + var config = utils.merge(defaultConfig, options); + + // Create a through2 object stream. This is our plugin export + var stream = through2.obj(gulpGzip); + + // Expose the config so we can test it + stream.config = config; + + function gulpGzip(file, enc, done) { + + /*jshint validthis: true */ + var self = this; + + // Check for empty file + if (file.isNull()) { + // Pass along the empty file to the next plugin + self.push(file); + done(); + return; + } + + // Call when finished with compression + var finished = function(err, contents, wasCompressed) { + if (err) { + var error = new PluginError(PLUGIN_NAME, err, { showStack: true }); + self.emit('error', error); + done(); + return; + } + + var complete = function() { + file.contents = contents; + self.push(file); + done(); + }; + + var getFixedPath = function(filepath) { + if (config.extension) { + filepath += '.' + config.extension; + } else if (config.preExtension) { + filepath = filepath.replace(/(\.[^\.]+)$/, '.' + config.preExtension + '$1'); + } else if (config.append) { + filepath += '.gz'; + } + + return filepath; + }; + + if (wasCompressed) { + if (file.contentEncoding) { + file.contentEncoding.push('gzip'); + } else { + file.contentEncoding = [ 'gzip' ]; + } + + file.path = getFixedPath(file.path); + complete(); + } else if (config.deleteMode) { + var cwd = path.resolve(config.deleteModeCwd || process.cwd()); + var directory = typeof config.deleteMode === 'string' ? config.deleteMode : config.deleteMode(file); + var filepath = path.resolve(cwd, directory, getFixedPath(file.relative)); + + fs.exists(filepath, function(exists) { + if(exists) { + gutil.log(gutil.colors.green('Gzipped file ' + filepath + ' deleted')); + fs.unlink(filepath, complete); + } else { + complete(); + } + }); + } else { + complete(); + } + + return; + }; + + compress(file.contents, config, finished); + } + + return stream; +}; diff --git a/node_modules/gulp-gzip/lib/compress.js b/node_modules/gulp-gzip/lib/compress.js new file mode 100755 index 000000000..db04c4c23 --- /dev/null +++ b/node_modules/gulp-gzip/lib/compress.js @@ -0,0 +1,88 @@ +var zlib = require('zlib'); +var Readable = require('stream').Readable; +var toArray = require('stream-to-array'); + +function convertContentsToBuffer(contents, callback) { + if (contents instanceof Buffer) { + callback(null, contents); + } else { + toArray(contents, function (err, chunks) { + if (err) { + callback(err, null); + return; + } + + callback(null, Buffer.concat(chunks)); + }); + } +} + +function convertContentsToStream(contents, callback) { + if (contents instanceof Readable) { + callback(null, contents); + } else { + var rs = new Readable({ objectMode: true }); + rs._read = function() { + rs.push(contents); + rs.push(null); + }; + callback(null, rs); + } +} + +module.exports = function(originalContents, options, callback) { + + convertContentsToBuffer(originalContents, function(err, contentsAsBuffer) { + if (err) { + callback(err, null, false); + return; + } + + var originalContentLength = contentsAsBuffer.length; + + // Check if the threshold option is set + // If true, check if the buffer length is greater than the threshold + if (options.threshold && originalContentLength < options.threshold) { + // File size is smaller than the threshold + // Pass it along to the next plugin without compressing + if (originalContents instanceof Buffer) { + callback(null, contentsAsBuffer, false); + } else { + convertContentsToStream(contentsAsBuffer, function(err, contentsAsStream) { + callback(null, contentsAsStream, false); + }); + } + return; + } + + convertContentsToStream(contentsAsBuffer, function(err, contentsAsStream) { + if (err) { + callback(err, null, false); + return; + } + + // Compress the contents + var gzipStream = zlib.createGzip(options.gzipOptions); + contentsAsStream.pipe(gzipStream); + + convertContentsToBuffer(gzipStream, function(err, compressedContentsAsBuffer) { + if (err) { + callback(err, null, false); + return; + } + + if (options.skipGrowingFiles && compressedContentsAsBuffer.length >= originalContentLength) { + callback(null, originalContents, false); + } else { + if (originalContents instanceof Buffer) { + callback(null, compressedContentsAsBuffer, true); + } else { + convertContentsToStream(compressedContentsAsBuffer, function(err, compressedContentsStream) { + callback(null, compressedContentsStream, true); + }); + } + } + }); + }); + }); +}; diff --git a/node_modules/gulp-gzip/lib/utils.js b/node_modules/gulp-gzip/lib/utils.js new file mode 100755 index 000000000..5658e1ca1 --- /dev/null +++ b/node_modules/gulp-gzip/lib/utils.js @@ -0,0 +1,43 @@ +var bytes = require('bytes'); + +// Merge source object with target object while handling threshold option +// Used to merge user defined plugin options with default options +function merge(target, source) { + if (typeof source === 'undefined') source = {}; + + Object.keys(source).forEach(function(key) { + if (key === 'threshold') { + target[key] = threshold(source[key]); + } else { + target[key] = source[key]; + } + }); + + return target; +} + +// Parse the threshold plugin option +// Specifies the minimum file size that will be compressed +// Can be a string, number, or boolean +function threshold(obj) { + var ret; + + switch (typeof obj) { + case 'string': + ret = bytes(obj) < 150 ? 150 : bytes(obj); + break; + case 'number': + ret = obj < 150 ? 150 : obj; + break; + case 'boolean': + ret = obj === false ? false : 150; + break; + default: + throw new Error('threshold must be String|Number|Boolean'); + } + + return ret; +} + +exports.merge = merge; +exports.threshold = threshold; diff --git a/node_modules/gulp-gzip/node_modules/.bin/has-ansi b/node_modules/gulp-gzip/node_modules/.bin/has-ansi new file mode 120000 index 000000000..c1e7413f1 --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/.bin/has-ansi @@ -0,0 +1 @@ +../has-ansi/cli.js \ No newline at end of file diff --git a/node_modules/gulp-gzip/node_modules/.bin/strip-ansi b/node_modules/gulp-gzip/node_modules/.bin/strip-ansi new file mode 120000 index 000000000..b65c9f81d --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/.bin/strip-ansi @@ -0,0 +1 @@ +../strip-ansi/cli.js \ No newline at end of file diff --git a/node_modules/gulp-gzip/node_modules/.bin/supports-color b/node_modules/gulp-gzip/node_modules/.bin/supports-color new file mode 120000 index 000000000..af0f05efe --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/.bin/supports-color @@ -0,0 +1 @@ +../supports-color/cli.js \ No newline at end of file diff --git a/node_modules/gulp-gzip/node_modules/ansi-regex/index.js b/node_modules/gulp-gzip/node_modules/ansi-regex/index.js new file mode 100644 index 000000000..783c5c7bb --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/ansi-regex/index.js @@ -0,0 +1,4 @@ +'use strict'; +module.exports = function () { + return /\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g; +}; diff --git a/node_modules/gulp-gzip/node_modules/ansi-regex/package.json b/node_modules/gulp-gzip/node_modules/ansi-regex/package.json new file mode 100644 index 000000000..cc36e20b8 --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/ansi-regex/package.json @@ -0,0 +1,114 @@ +{ + "_args": [ + [ + { + "raw": "ansi-regex@^0.2.0", + "scope": null, + "escapedName": "ansi-regex", + "name": "ansi-regex", + "rawSpec": "^0.2.0", + "spec": ">=0.2.0 <0.3.0", + "type": "range" + }, + "/home/dold/repos/taler/wallet-webex/node_modules/gulp-gzip/node_modules/has-ansi" + ] + ], + "_from": "ansi-regex@>=0.2.0 <0.3.0", + "_id": "ansi-regex@0.2.1", + "_inCache": true, + "_location": "/gulp-gzip/ansi-regex", + "_npmUser": { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + }, + "_npmVersion": "1.4.9", + "_phantomChildren": {}, + "_requested": { + "raw": "ansi-regex@^0.2.0", + "scope": null, + "escapedName": "ansi-regex", + "name": "ansi-regex", + "rawSpec": "^0.2.0", + "spec": ">=0.2.0 <0.3.0", + "type": "range" + }, + "_requiredBy": [ + "/gulp-gzip/has-ansi", + "/gulp-gzip/strip-ansi" + ], + "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz", + "_shasum": "0d8e946967a3d8143f93e24e298525fc1b2235f9", + "_shrinkwrap": null, + "_spec": "ansi-regex@^0.2.0", + "_where": "/home/dold/repos/taler/wallet-webex/node_modules/gulp-gzip/node_modules/has-ansi", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "http://sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/ansi-regex/issues" + }, + "dependencies": {}, + "description": "Regular expression for matching ANSI escape codes", + "devDependencies": { + "mocha": "*" + }, + "directories": {}, + "dist": { + "shasum": "0d8e946967a3d8143f93e24e298525fc1b2235f9", + "tarball": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/sindresorhus/ansi-regex", + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "license": "MIT", + "maintainers": [ + { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + } + ], + "name": "ansi-regex", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git://github.com/sindresorhus/ansi-regex.git" + }, + "scripts": { + "test": "mocha" + }, + "version": "0.2.1" +} diff --git a/node_modules/gulp-gzip/node_modules/ansi-regex/readme.md b/node_modules/gulp-gzip/node_modules/ansi-regex/readme.md new file mode 100644 index 000000000..ae876e729 --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/ansi-regex/readme.md @@ -0,0 +1,33 @@ +# ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex) + +> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) + + +## Install + +```sh +$ npm install --save ansi-regex +``` + + +## Usage + +```js +var ansiRegex = require('ansi-regex'); + +ansiRegex().test('\u001b[4mcake\u001b[0m'); +//=> true + +ansiRegex().test('cake'); +//=> false + +'\u001b[4mcake\u001b[0m'.match(ansiRegex()); +//=> ['\u001b[4m', '\u001b[0m'] +``` + +*It's a function so you can create multiple instances. Regexes with the global flag will have the `.lastIndex` property changed for each call to methods on the instance. Therefore reusing the instance with multiple calls will not work as expected for `.test()`.* + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/gulp-gzip/node_modules/ansi-styles/index.js b/node_modules/gulp-gzip/node_modules/ansi-styles/index.js new file mode 100644 index 000000000..2d8b4726d --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/ansi-styles/index.js @@ -0,0 +1,40 @@ +'use strict'; +var styles = module.exports; + +var codes = { + reset: [0, 0], + + bold: [1, 22], // 21 isn't widely supported and 22 does the same thing + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29], + + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + gray: [90, 39], + + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49] +}; + +Object.keys(codes).forEach(function (key) { + var val = codes[key]; + var style = styles[key] = {}; + style.open = '\u001b[' + val[0] + 'm'; + style.close = '\u001b[' + val[1] + 'm'; +}); diff --git a/node_modules/gulp-gzip/node_modules/ansi-styles/package.json b/node_modules/gulp-gzip/node_modules/ansi-styles/package.json new file mode 100644 index 000000000..4a425bab5 --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/ansi-styles/package.json @@ -0,0 +1,108 @@ +{ + "_args": [ + [ + { + "raw": "ansi-styles@^1.1.0", + "scope": null, + "escapedName": "ansi-styles", + "name": "ansi-styles", + "rawSpec": "^1.1.0", + "spec": ">=1.1.0 <2.0.0", + "type": "range" + }, + "/home/dold/repos/taler/wallet-webex/node_modules/gulp-gzip/node_modules/chalk" + ] + ], + "_from": "ansi-styles@>=1.1.0 <2.0.0", + "_id": "ansi-styles@1.1.0", + "_inCache": true, + "_location": "/gulp-gzip/ansi-styles", + "_npmUser": { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + }, + "_npmVersion": "1.4.9", + "_phantomChildren": {}, + "_requested": { + "raw": "ansi-styles@^1.1.0", + "scope": null, + "escapedName": "ansi-styles", + "name": "ansi-styles", + "rawSpec": "^1.1.0", + "spec": ">=1.1.0 <2.0.0", + "type": "range" + }, + "_requiredBy": [ + "/gulp-gzip/chalk" + ], + "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz", + "_shasum": "eaecbf66cd706882760b2f4691582b8f55d7a7de", + "_shrinkwrap": null, + "_spec": "ansi-styles@^1.1.0", + "_where": "/home/dold/repos/taler/wallet-webex/node_modules/gulp-gzip/node_modules/chalk", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "http://sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/ansi-styles/issues" + }, + "dependencies": {}, + "description": "ANSI escape codes for styling strings in the terminal", + "devDependencies": { + "mocha": "*" + }, + "directories": {}, + "dist": { + "shasum": "eaecbf66cd706882760b2f4691582b8f55d7a7de", + "tarball": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/sindresorhus/ansi-styles", + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "license": "MIT", + "maintainers": [ + { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + } + ], + "name": "ansi-styles", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git://github.com/sindresorhus/ansi-styles.git" + }, + "scripts": { + "test": "mocha" + }, + "version": "1.1.0" +} diff --git a/node_modules/gulp-gzip/node_modules/ansi-styles/readme.md b/node_modules/gulp-gzip/node_modules/ansi-styles/readme.md new file mode 100644 index 000000000..73584cc95 --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/ansi-styles/readme.md @@ -0,0 +1,70 @@ +# ansi-styles [![Build Status](https://travis-ci.org/sindresorhus/ansi-styles.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-styles) + +> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal + +You probably want the higher-level [chalk](https://github.com/sindresorhus/chalk) module for styling your strings. + +![screenshot](screenshot.png) + + +## Install + +```sh +$ npm install --save ansi-styles +``` + + +## Usage + +```js +var ansi = require('ansi-styles'); + +console.log(ansi.green.open + 'Hello world!' + ansi.green.close); +``` + + +## API + +Each style has an `open` and `close` property. + + +## Styles + +### General + +- `reset` +- `bold` +- `dim` +- `italic` *(not widely supported)* +- `underline` +- `inverse` +- `hidden` +- `strikethrough` *(not widely supported)* + +### Text colors + +- `black` +- `red` +- `green` +- `yellow` +- `blue` +- `magenta` +- `cyan` +- `white` +- `gray` + +### Background colors + +- `bgBlack` +- `bgRed` +- `bgGreen` +- `bgYellow` +- `bgBlue` +- `bgMagenta` +- `bgCyan` +- `bgWhite` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/gulp-gzip/node_modules/chalk/index.js b/node_modules/gulp-gzip/node_modules/chalk/index.js new file mode 100644 index 000000000..ac1f16820 --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/chalk/index.js @@ -0,0 +1,95 @@ +'use strict'; +var escapeStringRegexp = require('escape-string-regexp'); +var ansiStyles = require('ansi-styles'); +var stripAnsi = require('strip-ansi'); +var hasAnsi = require('has-ansi'); +var supportsColor = require('supports-color'); +var defineProps = Object.defineProperties; +var chalk = module.exports; + +function build(_styles) { + var builder = function builder() { + return applyStyle.apply(builder, arguments); + }; + builder._styles = _styles; + // __proto__ is used because we must return a function, but there is + // no way to create a function with a different prototype. + builder.__proto__ = proto; + return builder; +} + +var styles = (function () { + var ret = {}; + + ansiStyles.grey = ansiStyles.gray; + + Object.keys(ansiStyles).forEach(function (key) { + ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); + + ret[key] = { + get: function () { + return build(this._styles.concat(key)); + } + }; + }); + + return ret; +})(); + +var proto = defineProps(function chalk() {}, styles); + +function applyStyle() { + // support varags, but simply cast to string in case there's only one arg + var args = arguments; + var argsLen = args.length; + var str = argsLen !== 0 && String(arguments[0]); + if (argsLen > 1) { + // don't slice `arguments`, it prevents v8 optimizations + for (var a = 1; a < argsLen; a++) { + str += ' ' + args[a]; + } + } + + if (!chalk.enabled || !str) { + return str; + } + + /*jshint validthis: true*/ + var nestedStyles = this._styles; + + for (var i = 0; i < nestedStyles.length; i++) { + var code = ansiStyles[nestedStyles[i]]; + // Replace any instances already present with a re-opening code + // otherwise only the part of the string until said closing code + // will be colored, and the rest will simply be 'plain'. + str = code.open + str.replace(code.closeRe, code.open) + code.close; + } + + return str; +} + +function init() { + var ret = {}; + + Object.keys(styles).forEach(function (name) { + ret[name] = { + get: function () { + return build([name]); + } + }; + }); + + return ret; +} + +defineProps(chalk, init()); + +chalk.styles = ansiStyles; +chalk.hasColor = hasAnsi; +chalk.stripColor = stripAnsi; +chalk.supportsColor = supportsColor; + +// detect mode if not set manually +if (chalk.enabled === undefined) { + chalk.enabled = chalk.supportsColor; +} diff --git a/node_modules/gulp-gzip/node_modules/chalk/package.json b/node_modules/gulp-gzip/node_modules/chalk/package.json new file mode 100644 index 000000000..5c30d4512 --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/chalk/package.json @@ -0,0 +1,115 @@ +{ + "_args": [ + [ + { + "raw": "chalk@^0.5.0", + "scope": null, + "escapedName": "chalk", + "name": "chalk", + "rawSpec": "^0.5.0", + "spec": ">=0.5.0 <0.6.0", + "type": "range" + }, + "/home/dold/repos/taler/wallet-webex/node_modules/gulp-gzip/node_modules/gulp-util" + ] + ], + "_from": "chalk@>=0.5.0 <0.6.0", + "_id": "chalk@0.5.1", + "_inCache": true, + "_location": "/gulp-gzip/chalk", + "_npmUser": { + "name": "jbnicolai", + "email": "jappelman@xebia.com" + }, + "_npmVersion": "1.4.14", + "_phantomChildren": {}, + "_requested": { + "raw": "chalk@^0.5.0", + "scope": null, + "escapedName": "chalk", + "name": "chalk", + "rawSpec": "^0.5.0", + "spec": ">=0.5.0 <0.6.0", + "type": "range" + }, + "_requiredBy": [ + "/gulp-gzip/gulp-util" + ], + "_resolved": "https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz", + "_shasum": "663b3a648b68b55d04690d49167aa837858f2174", + "_shrinkwrap": null, + "_spec": "chalk@^0.5.0", + "_where": "/home/dold/repos/taler/wallet-webex/node_modules/gulp-gzip/node_modules/gulp-util", + "bugs": { + "url": "https://github.com/sindresorhus/chalk/issues" + }, + "dependencies": { + "ansi-styles": "^1.1.0", + "escape-string-regexp": "^1.0.0", + "has-ansi": "^0.1.0", + "strip-ansi": "^0.3.0", + "supports-color": "^0.2.0" + }, + "description": "Terminal string styling done right. Created because the `colors` module does some really horrible things.", + "devDependencies": { + "matcha": "^0.5.0", + "mocha": "*" + }, + "directories": {}, + "dist": { + "shasum": "663b3a648b68b55d04690d49167aa837858f2174", + "tarball": "https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js" + ], + "gitHead": "994758f01293f1fdcf63282e9917cb9f2cfbdaac", + "homepage": "https://github.com/sindresorhus/chalk", + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "ansi", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "license": "MIT", + "maintainers": [ + { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + }, + { + "name": "jbnicolai", + "email": "jappelman@xebia.com" + } + ], + "name": "chalk", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git://github.com/sindresorhus/chalk.git" + }, + "scripts": { + "bench": "matcha benchmark.js", + "test": "mocha" + }, + "version": "0.5.1" +} diff --git a/node_modules/gulp-gzip/node_modules/chalk/readme.md b/node_modules/gulp-gzip/node_modules/chalk/readme.md new file mode 100644 index 000000000..239c791f8 --- /dev/null +++ b/node_modules/gulp-gzip/node_modules/chalk/readme.md @@ -0,0 +1,175 @@ +# chalk + +> Terminal string styling done right + +[![Build Status](https://travis-ci.org/sindresorhus/chalk.svg?branch=master)](https://travis-ci.org/sindresorhus/chalk) +![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg) + +[colors.js](https://github.com/Marak/colors.js) is currently the most popular string styling module, but it has serious deficiencies like extending String.prototype which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough. + +**Chalk is a clean and focused alternative.** + +![screenshot](https://github.com/sindresorhus/ansi-styles/raw/master/screenshot.png) + + +## Why + +- Highly performant +- Doesn't extend String.prototype +- Expressive API +- Ability to nest styles +- Clean and focused +- Auto-detects color support +- Actively maintained +- [Used by 1000+ modules](https://npmjs.org/browse/depended/chalk) + + +## Install + +```sh +$ npm install --save chalk +``` + + +## Usage + +Chalk comes with an easy to use composable API where you just chain and nest the styles you want. + +```js +var chalk = require('chalk'); + +// style a string +console.log( chalk.blue('Hello world!') ); + +// combine styled and normal strings +console.log( chalk.blue('Hello'), 'World' + chalk.red('!') ); + +// compose multiple styles using the chainable API +console.log( chalk.blue.bgRed.bold('Hello world!') ); + +// pass in multiple arguments +console.log( chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz') ); + +// nest styles +console.log( chalk.red('Hello', chalk.underline.bgBlue('world') + '!') ); + +// nest styles of the same type even (color, underline, background) +console.log( chalk.green('I am a green line ' + chalk.blue('with a blue substring') + ' that becomes green again!') ); +``` + +Easily define your own themes. + +```js +var chalk = require('chalk'); +var error = chalk.bold.red; +console.log(error('Error!')); +``` + +Take advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data). + +```js +var name = 'Sindre'; +console.log(chalk.green('Hello %s'), name); +//=> Hello Sindre +``` + + +## API + +### chalk.`