Skip to content

Fix treeForFastBoot when project is an addon#808

Merged
rwjblue merged 1 commit intoember-fastboot:masterfrom
simonihmig:fix-treeforfb
Jan 29, 2021
Merged

Fix treeForFastBoot when project is an addon#808
rwjblue merged 1 commit intoember-fastboot:masterfrom
simonihmig:fix-treeforfb

Conversation

@simonihmig
Copy link
Contributor

Fixes #807

Tested locally in an addon.

const projectFastbootPath = path.join(this.project.root, 'fastboot');
if (this.existsSync(projectFastbootPath)) {
// ignore the project's fastboot folder if we are an addon, as that is already handled above
if (!this.project.isEmberCLIAddon() && this.existsSync(projectFastbootPath)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simonihmig it would be great to add a test for this. Seems like we will need to add a test-package app that consumes an addon that uses ember-cli-fastboot

#805 is going to change this repos structure over the next week. We may need to rebase this PR then we can get it merged.

@rwjblue rwjblue added the bug label Jan 29, 2021
@kiwiupover
Copy link
Member

@simonihmig thanks for you PR

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chatted with @xg-wang and @kiwiupover in todays FastBoot meeting, @kiwiupover is going to work on adding a full dummy app test project so that this code is properly undertest. But we are going to merge this in while he works on that, since the code seems correct.

@rwjblue rwjblue merged commit 3f54024 into ember-fastboot:master Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

treeForFastBoot is not handled correctly when project is an addon

3 participants