Comparing version 0.16.7 to 0.16.8
# master | ||
# 0.16.8 | ||
* Add builder hooks | ||
# 0.16.7 | ||
@@ -4,0 +8,0 @@ |
@@ -34,2 +34,4 @@ var path = require('path') | ||
RSVP.EventTarget.mixin(Builder.prototype) | ||
Builder.prototype.build = function (willReadStringTree) { | ||
@@ -43,2 +45,3 @@ var builder = this | ||
.then(function () { | ||
builder.trigger('start') | ||
return readAndReturnNodeFor(builder.tree) // call builder.tree.read() | ||
@@ -48,3 +51,6 @@ }) | ||
.finally(appendNewTreesRead) | ||
.catch(wrapStringErrors); | ||
.finally(function() { | ||
builder.trigger('end') | ||
}) | ||
.catch(wrapStringErrors) | ||
@@ -79,2 +85,4 @@ | ||
builder.trigger('nodeStart', node) | ||
// we don't actually support duplicate trees, as such we should likely tag them.. | ||
@@ -142,2 +150,3 @@ // and kill the parallel array structure | ||
.then(function (treeDir) { | ||
builder.trigger('nodeEnd', node) | ||
if (treeDir == null) throw new Error(tree + ': .read must return a directory') | ||
@@ -144,0 +153,0 @@ node.directory = treeDir |
{ | ||
"name": "broccoli", | ||
"description": "Fast client-side asset builder", | ||
"version": "0.16.7", | ||
"version": "0.16.8", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -70,5 +70,5 @@ # Broccoli | ||
```js | ||
var funnel = require('broccoli-funnel') | ||
var Funnel = require('broccoli-funnel') | ||
module.exports = funnel('app', { | ||
module.exports = new Funnel('app', { | ||
destDir: 'appkit' | ||
@@ -75,0 +75,0 @@ }) |
Sorry, the diff of this file is not supported yet
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
59506
568