Comparing version 0.13.1 to 0.13.2
# master | ||
# 0.13.2 | ||
* Extract slow trees printout into broccoli-slow-trees package | ||
* Allow the tree `cleanup` method to be asynchronous (by returning a promise). | ||
# 0.13.1 | ||
@@ -4,0 +9,0 @@ |
var path = require('path') | ||
var findup = require('findup-sync') | ||
var RSVP = require('rsvp') | ||
var mapSeries = require('promise-map-series') | ||
@@ -125,8 +126,9 @@ | ||
Builder.prototype.cleanup = function () { | ||
for (var i = 0; i < this.allTreesRead.length; i++) { | ||
var tree = this.allTreesRead[i] | ||
function cleanupTree(tree) { | ||
if (typeof tree !== 'string') { | ||
tree.cleanup() | ||
return tree.cleanup() | ||
} | ||
} | ||
return mapSeries(this.allTreesRead, cleanupTree) | ||
} | ||
@@ -133,0 +135,0 @@ |
@@ -40,3 +40,3 @@ var fs = require('fs') | ||
.finally(function () { | ||
builder.cleanup() | ||
return builder.cleanup() | ||
}) | ||
@@ -43,0 +43,0 @@ .then(function () { |
var EventEmitter = require('events').EventEmitter | ||
var helpers = require('broccoli-kitchen-sink-helpers') | ||
var printSlowTrees = require('./logging').printSlowTrees | ||
var printSlowTrees = require('broccoli-slow-trees'); | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "broccoli", | ||
"description": "Fast client-side asset builder", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
"main": "lib/index.js", | ||
"license": "MIT", | ||
"keywords": ["builder", "build", "frontend", "browser", "asset", "pipeline"], | ||
"keywords": [ | ||
"builder", | ||
"build", | ||
"frontend", | ||
"browser", | ||
"asset", | ||
"pipeline" | ||
], | ||
"repository": { | ||
@@ -13,10 +20,13 @@ "type": "git", | ||
}, | ||
"homepage": "https://github.com/broccolijs/broccoli", | ||
"dependencies": { | ||
"broccoli-kitchen-sink-helpers": "^0.2.0", | ||
"broccoli-slow-trees": "^1.0.0", | ||
"commander": "^2.0.0", | ||
"connect": "^3.2.0", | ||
"copy-dereference": "^1.0.0", | ||
"findup-sync": "^0.1.2", | ||
"handlebars": "^2.0.0", | ||
"mime": "^1.2.11", | ||
"copy-dereference": "^1.0.0", | ||
"promise-map-series": "^0.2.0", | ||
"rsvp": "^3.0.6", | ||
@@ -29,5 +39,9 @@ "tiny-lr": "^0.1.4" | ||
}, | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "jshint lib/*.js test/*.js && tap --stderr --timeout 2 ./test/*_test.js" | ||
"pretest": "jshint lib test", | ||
"test": "tap --stderr --timeout 2 ./test/*_test.js" | ||
} | ||
} |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
66671
11
419
+ Addedbroccoli-slow-trees@^1.0.0
+ Addedpromise-map-series@^0.2.0
+ Addedbroccoli-slow-trees@1.1.0(transitive)
+ Addedpromise-map-series@0.2.3(transitive)