Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved building fastboot config tree from postProcessTree to treeForPublic #690

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 3 additions & 16 deletions index.js
Expand Up @@ -218,23 +218,10 @@ module.exports = {

let newTree = new MergeTrees(trees);

return newTree;
},

/**
* After the entire Broccoli tree has been built for the `dist` directory,
* adds the `fastboot-config.json` file to the root.
*
*/
postprocessTree(type, tree) {
if (type === 'all') {
let fastbootConfigTree = this._buildFastbootConfigTree(tree);

// Merge the package.json with the existing tree
return new MergeTrees([tree, fastbootConfigTree], {overwrite: true});
}
let fastbootConfigTree = this._buildFastbootConfigTree(newTree);

return tree;
// Merge the package.json with the existing tree
return new MergeTrees([newTree, fastbootConfigTree], {overwrite: true});
},

/**
Expand Down