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

File and directory with the same name (merge root with children) #21

Open
slavafomin opened this issue Dec 23, 2015 · 0 comments
Open

Comments

@slavafomin
Copy link

Hello!

Thank you for this great module!

However, consider please the following scenario:

  • config/integration.js
  • config/integration/facebook.js
  • config/integration/google.js
  • config/integration/twitter.js
// integration.js
module.exports = {
  timeout: 30000,
  maxRequestsPerSec: 10
};
// integration/facebook.js
module.exports = {
  clientId: '...',
  secret: '...'
};

I want root integration.js to be merged with all children, i.e. facebook.js etc, to look like:

{
  timeout: 30000,
  maxRequestsPerSec: 10,
  facebook: {
    clientId: '...',
    secret: '...'
  },
  // ...
}

Is it possible right now? Are you planning to implement it?

Thank you!

@slavafomin slavafomin changed the title File and directory with the same name File and directory with the same name (merge root with children) Dec 23, 2015
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

No branches or pull requests

1 participant