broccolijs / broccoli-debug Goto Github PK
View Code? Open in Web Editor NEWDebugging tools for Broccoli
License: MIT License
Debugging tools for Broccoli
License: MIT License
I have a created a new ember addon (using ember-cli version 2.13.3) to test this utility but it directly fails with the following error:
Build failed.
The Broccoli Plugin: [BroccoliMergeTrees: Addon#treeFor (test-addon - app)] failed with:
Error: Build Canceled: Broccoli Builder ran into an error with BroccoliDebug plugin. 💥
at new BroccoliBuildError (C:\Projects\temp\test-addon\node_modules\broccoli-builder\lib\broccoli-build-error.js:40:9)
at C:\Projects\temp\test-addon\node_modules\broccoli-builder\lib\builder.js:168:19
at tryCatch (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:539:12)
at invokeCallback (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:554:13)
at publish (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:522:7)
at publishRejection (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:457:3)
at flush (C:\Projects\temp\test-addon\node_modules\rsvp\dist\rsvp.js:2414:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
The broccoli plugin was instantiated at:
at BroccoliMergeTrees.Plugin (C:\Projects\temp\test-addon\node_modules\broccoli-plugin\index.js:7:31)
at new BroccoliMergeTrees (C:\Projects\temp\test-addon\node_modules\ember-cli\node_modules\broccoli-merge-trees\index.js:16:10)
at Function.BroccoliMergeTrees [as _upstreamMergeTrees] (C:\Projects\temp\test-addon\node_modules\ember-cli\node_modules\broccoli-merge-trees\index.js:10:53)
at mergeTrees (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\merge-trees.js:85:33)
at Class.treeFor (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\models\addon.js:490:30)
at project.addons.map.addon (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\ember-app.js:559:22)
at Array.map (native)
at EmberAddon.addonTreesFor (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\ember-app.js:557:32)
at EmberAddon._processedAppTree (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\ember-app.js:852:27)
at EmberAddon.appAndDependencies (C:\Projects\temp\test-addon\node_modules\ember-cli\lib\broccoli\ember-app.js:1114:12)
I have the following index.js file.
const BroccoliDebug = require('broccoli-debug');
module.exports = {
name: 'test-addon',
treeForApp(...rest) {
let tree = this._super(...rest);
const debugTree = BroccoliDebug.buildDebugCallback(`test:${this.name}`);
return debugTree(tree, 'treeFor');
}
};
command executed is BROCCOLI_DEBUG=test:* ember b
Any clues what I'm doing wrong here or how I could find the original error?
Is broccoli-debug
working with Embroider?
Using return new BroccoliDebug(inputNode, "foo:bar");
in one of the treeForX
addon methods used to produce DEBUG/foo/bar
directories when running BROCCOLI_DEBUG=* yarn build
on a classic build, but these DEBUG directories do not exist anymore under an embroider build…
Hello,
I'm having a problem getting this plugin to work and I'm not sure if user error or something else.
I'm running my Brocfile.js with the latest version of broccoli.js and I'm not getting any DEBUG output in my project root (or anywhere for that matter).
Versions being used:
"broccoli": "^1.1.4",
"broccoli-debug": "^0.6.4",
"broccoli-funnel": "^2.0.1",
Inside my Brocfile.js
const Funnel = require('broccoli-funnel');
const source = '.';
const foo = Funnel(source, {
srcDir: 'js',
destDir: 'some_js',
annotation: 'Testing Things'
});
let debugTree = Debug.buildDebugCallback(`foo:${this.name}`)
let tree = debugTree(foo, 'templates:equipment');
...
Command I'm running:
BROCCOLI_DEBUG=foo:* broccoli build ../test-static
Thanks for your time :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.