Comparing version 0.8.0 to 0.9.0
# master | ||
# 0.9.0 | ||
* `Brocfile.js` now exports a tree, not a function | ||
# 0.8.0 | ||
@@ -4,0 +8,0 @@ |
@@ -101,5 +101,18 @@ var path = require('path') | ||
var broccoli = require('./index') | ||
var tree = require(brocfile)(broccoli) | ||
var tree = require(brocfile) | ||
if (typeof tree === 'function') { | ||
throw new Error('Exporting a function in Brocfile.js is no longer supported. ' + | ||
'Export a tree instead. To update, turn this\n' + | ||
'\n' + | ||
' module.exports = function (broccoli) {\n' + | ||
' ...\n' + | ||
' return someTree;\n' + | ||
' };\n' + | ||
'\n' + | ||
'into this\n' + | ||
'\n' + | ||
' ...\n' + | ||
' module.exports = someTree;\n') | ||
} | ||
if (Array.isArray(tree)) { | ||
@@ -106,0 +119,0 @@ throw new Error('Returning an array from Brocfile.js is no longer supported\n' + |
@@ -12,2 +12,5 @@ var builder = require('./builder') | ||
} | ||
exports.bowerTrees = function bowerTrees (dir) { | ||
throw new Error('broccoli.bowerTrees has been extracted into the broccoli-bower plugin.\nUse `var findBowerTrees = require(\'broccoli-bower\'); findBowerTrees() // => array of trees` instead.') | ||
} | ||
exports.MergedTree = function MergedTree () { | ||
@@ -14,0 +17,0 @@ throw new Error('broccoli.MergedTree has been extracted into the broccoli-merge-trees plugin.\n' + |
{ | ||
"name": "broccoli", | ||
"description": "Fast client-side asset builder", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
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
35173
312