broccoli-merge-trees
Advanced tools
Comparing version 0.2.2 to 0.2.3
# master | ||
# 0.2.3 | ||
* Add debug logging | ||
# 0.2.2 | ||
@@ -4,0 +8,0 @@ |
14
index.js
@@ -5,2 +5,3 @@ var fs = require('fs') | ||
var symlinkOrCopySync = require('symlink-or-copy').sync | ||
var debug = require('debug') | ||
@@ -19,5 +20,12 @@ module.exports = BroccoliMergeTrees | ||
}) | ||
this._debug = debug('broccoli-merge-trees:' + (options.annotation || '')); | ||
this.options = options | ||
this._buildCount = 0; | ||
} | ||
BroccoliMergeTrees.prototype.debug = function(message, args) { | ||
this._debug(message, args); | ||
} | ||
BroccoliMergeTrees.prototype.build = function() { | ||
@@ -27,4 +35,10 @@ var inputPaths = this.inputPaths | ||
var overwrite = this.options.overwrite | ||
this._buildCount++; | ||
var start = new Date() | ||
mergeRelativePath('') | ||
this.debug('build: \n %o', { | ||
count: this._buildCount, | ||
in: new Date() - start + 'ms' | ||
}) | ||
@@ -31,0 +45,0 @@ function mergeRelativePath (baseDir, possibleIndices) { |
{ | ||
"name": "broccoli-merge-trees", | ||
"description": "Broccoli plugin to merge multiple trees into one", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -19,2 +19,3 @@ "main": "index.js", | ||
"broccoli-plugin": "^1.0.0", | ||
"debug": "^2.2.0", | ||
"symlink-or-copy": "^1.0.0" | ||
@@ -21,0 +22,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
17823
157
3
+ Addeddebug@^2.2.0
+ Addeddebug@2.6.9(transitive)
+ Addedms@2.0.0(transitive)