google-closure-compiler
Advanced tools
Comparing version 20161024.1.0 to 20161024.2.0
@@ -30,4 +30,4 @@ /* | ||
module.exports = function(grunt, extraArguments) { | ||
var chalk = require('gulp-util').colors; | ||
var vinylfs = require('vinyl-fs'); | ||
var chalk = require('chalk'); | ||
var VinylStream = require('./vinyl-stream'); | ||
var fs = require('fs'); | ||
@@ -75,4 +75,4 @@ var path = require('path'); | ||
// the compiler task | ||
stream = vinylfs.src(files, {base: process.cwd()}) | ||
.pipe(gulpCompiler(options, gulpCompilerOptions)) | ||
stream = new VinylStream(files, {base: process.cwd()}) | ||
.pipe(gulpCompiler(options, gulpCompilerOptions)); | ||
} else { | ||
@@ -79,0 +79,0 @@ // No source files were provided. Assume the options specify |
@@ -31,3 +31,2 @@ /* | ||
/** | ||
@@ -41,4 +40,2 @@ * @param {Object<string,string>} initOptions | ||
var Compiler = require('../node/closure-compiler'); | ||
var gutil = require('gulp-util'); | ||
var PluginError = gutil.PluginError; | ||
var stream = require('stream'); | ||
@@ -51,4 +48,30 @@ /** @const */ | ||
var path = require('path'); | ||
var chalk = require('chalk'); | ||
var File = require('vinyl'); | ||
/** @constructor */ | ||
function CustomError(plugin, msg) { | ||
var superError = Error.call(this) || this; | ||
Error.captureStackTrace(superError, this.constructor); | ||
superError.name = 'Error'; | ||
superError.message = msg; | ||
return superError; | ||
} | ||
CustomError.prototype = Object.create(Error.prototype); | ||
CustomError.prototype.name = 'Error'; | ||
var PluginError; | ||
try { | ||
PluginError = require('gulp-util').PluginError; | ||
} catch(e) { | ||
PluginError = CustomError; | ||
} | ||
var gulpLog; | ||
try { | ||
gulpLog = require('gulp-util').log; | ||
} catch(e) { | ||
gulpLog = console; | ||
} | ||
function CompilationStream(compilationOptions, pluginOptions) { | ||
@@ -61,3 +84,3 @@ stream.Transform.call(this, {objectMode: true}); | ||
this.streamMode_ = pluginOptions.streamMode || 'BOTH'; | ||
this.logger_ = pluginOptions.logger || gutil.log; | ||
this.logger_ = pluginOptions.logger || gulpLog; | ||
this.PLUGIN_NAME_ = pluginOptions.pluginName || PLUGIN_NAME; | ||
@@ -75,7 +98,7 @@ | ||
var stdInStream = new stream.Readable({ read: function() { | ||
return new gutil.File(); | ||
return new File(); | ||
}}); | ||
stdInStream.pipe(this); | ||
stdInStream.push(null); | ||
}).bind(this)); | ||
stdInStream.pipe(this); | ||
stdInStream.push(null); | ||
}).bind(this)); | ||
return this; | ||
@@ -159,3 +182,3 @@ }; | ||
if (stdErrData.trim().length > 0) { | ||
logger(gutil.colors.yellow(this.PLUGIN_NAME_) + ': ' + stdErrData); | ||
logger(chalk.yellow(this.PLUGIN_NAME_) + ': ' + stdErrData); | ||
} | ||
@@ -162,0 +185,0 @@ |
@@ -26,4 +26,3 @@ /* | ||
var gutil = require('gulp-util'); | ||
var File = gutil.File; | ||
var File = require('vinyl'); | ||
var path = require('path'); | ||
@@ -30,0 +29,0 @@ |
{ | ||
"name": "google-closure-compiler", | ||
"version": "20161024.1.0", | ||
"version": "20161024.2.0", | ||
"description": "Check, compile, optimize and compress Javascript with Closure-Compiler", | ||
@@ -40,4 +40,3 @@ "repository": { | ||
"chalk": "^1.0.0", | ||
"gulp-util": "^3.0.7", | ||
"vinyl-fs": "^2.2.1", | ||
"vinyl": "^1.2.0", | ||
"vinyl-sourcemaps-apply": "^0.2.0" | ||
@@ -62,4 +61,4 @@ }, | ||
"engines": { | ||
"node" : ">=0.12.0" | ||
"node": ">=0.12.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11584943
3
140
180195
2
+ Addedvinyl@^1.2.0
- Removedgulp-util@^3.0.7
- Removedvinyl-fs@^2.2.1
- Removedansi-gray@0.1.1(transitive)
- Removedansi-wrap@0.1.0(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarray-differ@1.0.0(transitive)
- Removedarray-uniq@1.0.3(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbeeper@1.1.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@1.8.5(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddateformat@2.2.0(transitive)
- Removedduplexer2@0.0.2(transitive)
- Removedduplexify@3.7.1(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextend-shallow@2.0.1(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfancy-log@1.3.3(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfirst-chunk-stream@1.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedglob@5.0.15(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.03.1.0(transitive)
- Removedglob-stream@5.3.5(transitive)
- Removedglogg@1.0.2(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedgulp-sourcemaps@1.6.0(transitive)
- Removedgulp-util@3.0.8(transitive)
- Removedgulplog@1.0.0(transitive)
- Removedhas-gulplog@0.1.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extendable@0.1.1(transitive)
- Removedis-extglob@1.0.02.1.1(transitive)
- Removedis-glob@2.0.13.1.0(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedis-valid-glob@0.3.0(transitive)
- Removedisarray@0.0.11.0.0(transitive)
- Removedisobject@2.1.0(transitive)
- Removedjson-stable-stringify-without-jsonify@1.0.1(transitive)
- Removedkind-of@3.2.26.0.3(transitive)
- Removedlazystream@1.0.1(transitive)
- Removedlodash._basecopy@3.0.1(transitive)
- Removedlodash._basetostring@3.0.1(transitive)
- Removedlodash._basevalues@3.0.0(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash._isiterateecall@3.0.9(transitive)
- Removedlodash._reescape@3.0.0(transitive)
- Removedlodash._reevaluate@3.0.0(transitive)
- Removedlodash._reinterpolate@3.0.0(transitive)
- Removedlodash._root@3.0.1(transitive)
- Removedlodash.escape@3.2.0(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedlodash.restparam@3.6.1(transitive)
- Removedlodash.template@3.6.2(transitive)
- Removedlodash.templatesettings@3.1.1(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmerge-stream@1.0.1(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmultipipe@0.1.2(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removedobject-assign@3.0.04.1.1(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedordered-read-streams@0.3.0(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedparse-node-version@1.0.1(transitive)
- Removedpath-dirname@1.0.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedreadable-stream@1.0.341.1.142.3.83.6.2(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedsafe-buffer@5.1.25.2.1(transitive)
- Removedsparkles@1.0.1(transitive)
- Removedstream-shift@1.0.3(transitive)
- Removedstring_decoder@0.10.311.1.11.3.0(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedstrip-bom-stream@1.0.0(transitive)
- Removedthrough2@0.6.52.0.54.0.2(transitive)
- Removedthrough2-filter@2.0.03.1.0(transitive)
- Removedtime-stamp@1.1.0(transitive)
- Removedto-absolute-glob@0.1.1(transitive)
- Removedunique-stream@2.3.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedvali-date@1.0.0(transitive)
- Removedvinyl@0.5.3(transitive)
- Removedvinyl-fs@2.4.4(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)