diff options
Diffstat (limited to 'node_modules/gulp-tar/node_modules/gulp-util/lib/log.js')
-rw-r--r-- | node_modules/gulp-tar/node_modules/gulp-util/lib/log.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/gulp-tar/node_modules/gulp-util/lib/log.js b/node_modules/gulp-tar/node_modules/gulp-util/lib/log.js new file mode 100644 index 000000000..bb843beef --- /dev/null +++ b/node_modules/gulp-tar/node_modules/gulp-util/lib/log.js @@ -0,0 +1,14 @@ +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; +}; |