Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,17 @@ module.exports = {
].filter(Boolean));
},

treeForPublic() {
let parentAddon = this.parent.findAddonByName(this.parent.name());
let defaultTree = this._super.treeForPublic.apply(this, arguments);
getBroccoliBridge() {
if (!this._broccoliBridge) {
const Bridge = require('broccoli-bridge');
this._broccoliBridge = new Bridge();
}
return this._broccoliBridge;
},

if (!parentAddon) { return defaultTree; }
postprocessTree(type, tree) {
let parentAddon = this.parent.findAddonByName(this.parent.name());
if (!parentAddon || type !== 'all') { return tree; }

let PluginRegistry = require('./lib/models/plugin-registry');
let DocsCompiler = require('./lib/broccoli/docs-compiler');
Expand Down Expand Up @@ -227,15 +233,7 @@ module.exports = {
config: this.project.config(EmberApp.env())
});

return new MergeTrees([ defaultTree, docsTree, searchIndexTree ]);
},

getBroccoliBridge() {
if (!this._broccoliBridge) {
const Bridge = require('broccoli-bridge');
this._broccoliBridge = new Bridge();
}
return this._broccoliBridge;
return new MergeTrees([ tree, docsTree, searchIndexTree ]);
},

_lunrTree() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"broccoli-asset-rev": "^3.0.0",
"common-tags": "^1.8.0",
"ember-classy-page-object": "^0.5.0",
"ember-cli": "~3.3.0",
"ember-cli": "~3.4.0",
"ember-cli-addon-docs-esdoc": "^0.2.1",
"ember-cli-addon-docs-yuidoc": "^0.2.1",
"ember-cli-dependency-checker": "^3.0.0",
Expand Down
Loading