Skip to content

Conversation

@raymondfeng
Copy link
Contributor

@raymondfeng raymondfeng commented May 14, 2020

  1. This further simplifies how a main application can boot sub-applications. The idea was from @bajtos in one of the comments (I cannot find it anymore :-).

  2. Add model() to RepositoryMixin and use it for model booter (feat(cli): bind model classes during boot #5378 (comment))

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@raymondfeng raymondfeng requested a review from jannyHou as a code owner May 14, 2020 16:28
@raymondfeng raymondfeng requested a review from bajtos May 14, 2020 16:29
@raymondfeng raymondfeng changed the title feat(boot): add applicationBooter method to BootMixin feat(boot): add more helper methods for model and application booters May 14, 2020
Copy link
Contributor

@jannyHou jannyHou left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

Thank you for converting my suggestions into a pull request!

The changes look mostly good to me, please get the final approval from code owners.

constructor() {
super();
this.projectRoot = __dirname;
this.applicationBooter(app);
Copy link
Member

Choose a reason for hiding this comment

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

Should the method name start with a verb, e.g. this.addApplicationBooter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Again, I choose a noun to be consistent with other methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants