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

api-server: configure default mixin sources #198

Merged
merged 1 commit into from
May 25, 2015
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented May 7, 2015

As a follow-up for strongloop/loopback-boot#131, this patch modifies the scaffolded model-config.json to include lookup paths for mixins.

  • loopback/common/mixins
  • loopback/server/mixins
  • ../common/mixins
  • ./mixins

Connect to strongloop/loopback-boot#79

/to @ritch please review
/cc @PradnyaBaviskar

@bajtos bajtos added the #review label May 7, 2015
@bajtos bajtos assigned raymondfeng and ritch and unassigned raymondfeng May 7, 2015
@@ -44,6 +44,12 @@ template.server = {
'loopback/server/models',
'../common/models',
'./models',
],
mixins: [
Copy link
Member Author

Choose a reason for hiding this comment

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

I am pondering whether "mixins" is a good key name, perhaps "mixinSources" would be a better name? (See also "sources" key used for model sources above.)

Copy link
Member

Choose a reason for hiding this comment

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

It should be consistent with what we have for models IMO

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be consistent with what we have for models IMO

👍 for consistency

I am not sure how to apply that rule in this particular case. @ritch What property name would you find more consistent?

This is the current prologue of the scaffolded model-config.json file:

{
  "_meta": {
    "sources": ["loopback/common/models", "etc."],
    "mixins": ["loopback/common/mixins", "etc."]
  }
}

@bajtos
Copy link
Member Author

bajtos commented May 12, 2015

@ritch ping

@ritch
Copy link
Member

ritch commented May 12, 2015

LGTM

@ritch ritch assigned bajtos and unassigned ritch May 12, 2015
bajtos added a commit that referenced this pull request May 25, 2015
api-server: configure default mixin sources
@bajtos bajtos merged commit 019f08a into master May 25, 2015
@bajtos bajtos removed the #review label May 25, 2015
@bajtos bajtos deleted the feature/mixin-sources branch May 25, 2015 08:47
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.

3 participants