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

Add support for custom configuration #752

Merged
merged 3 commits into from
Mar 15, 2020

Conversation

bobisjan
Copy link
Contributor

@bobisjan bobisjan commented Feb 18, 2020

This adds support for reading FastBoot configuration from config/fastboot.js (similar to how other add-ons like ember-intl works).

It should be possible to share this file with production server fastboot-app-server.

TODOs

  • Update README.md
  • Add blueprint

Copy link
Contributor

@kratiahuja kratiahuja left a comment

Choose a reason for hiding this comment

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

Thanks for making this change!

index.js Outdated
@@ -79,6 +79,8 @@ module.exports = {
this._appRegistry = app.registry;
this._name = app.name;

this.options = this._optionsFor(app.env, app.project);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: Maybe better to name this this.fastbootOptions for clarity.

test/fastboot-config-test.js Show resolved Hide resolved
index.js Show resolved Hide resolved
@kratiahuja kratiahuja marked this pull request as ready for review March 6, 2020 21:38
@bobisjan bobisjan force-pushed the fastboot-config branch 3 times, most recently from a087a27 to 886f9ab Compare March 7, 2020 11:06
@bobisjan bobisjan requested a review from kratiahuja March 7, 2020 11:17
@bobisjan bobisjan force-pushed the fastboot-config branch 2 times, most recently from c84f169 to 0ecc1da Compare March 7, 2020 11:47
Copy link
Contributor

@kratiahuja kratiahuja left a comment

Choose a reason for hiding this comment

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

Please update the README and then I can merge this.

@bobisjan
Copy link
Contributor Author

bobisjan commented Mar 8, 2020

Please update the README

Done ✅, the section uses option and link for fastboot#2.x, should be updated when upgrading to fastboot#3.x in the future.

README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@kratiahuja
Copy link
Contributor

This is good to go IMO after the minor update to readme about fastboot-app-server.

@kratiahuja
Copy link
Contributor

Thanks for addressing the comments. Merging this.

@kratiahuja kratiahuja merged commit 2458159 into ember-fastboot:master Mar 15, 2020
@bobisjan bobisjan deleted the fastboot-config branch March 16, 2020 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants