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

Embroider Support: Moved app factory module out of fastboot-app-module #714

Conversation

dnalagatla
Copy link
Contributor

@dnalagatla dnalagatla commented Jul 28, 2019

  • Cleaned up fastboot-app-module.
  • Added Fastboot-app-factory-plugin to insert app factory module as part of -fastboot.js
  • This clean up ensures fastboot specific App-factory code is not shipped as part of browser assets.
  • With Embroider not supporting app-boot type contentFor, this change ensures the insertion of the app-factory module is not dependent on app-boot step in the build process.

WIP: #700

@dnalagatla
Copy link
Contributor Author

@rwjblue @stefanpenner Created this PR to clean up fastboot-app-module code that gets inserted as part of app.js.

I made changes to move the app-factory to a separate module and created a broccoli plugin to generate the content and merged as part of app-fastboot.js.

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@dnalagatla dnalagatla force-pushed the dnalagatla/move-appFactory-module-to-fastboot-tree branch from a0f09f3 to c2f3c9c Compare July 29, 2019 15:34
@dnalagatla dnalagatla force-pushed the dnalagatla/move-appFactory-module-to-fastboot-tree branch 2 times, most recently from d0fbb39 to 7c861dd Compare August 9, 2019 17:49
* Cleaned up fastboot-app-module.
* Used broccoli-file-creator to insert app factory module as part of <app>-fastboot.js
* This clean up ensures fastboot specific App-factory code is not shipped to browsers.
@dnalagatla dnalagatla force-pushed the dnalagatla/move-appFactory-module-to-fastboot-tree branch from 7c861dd to 617a17c Compare August 9, 2019 17:50
@rwjblue rwjblue merged commit 2ad9389 into ember-fastboot:master Aug 12, 2019
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.

None yet

3 participants