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

Config path from package.json #1075

Closed

Conversation

jraut
Copy link
Contributor

@jraut jraut commented Oct 27, 2018

Hello,

This pull request is created because of #987

It lets the CLI use a custom config folder.

Based on the discussions on the issue, the following changes were made to generating a new project

  • When creating a project, the package.json is created with a value for a config directory
  • The value is read from NODE_CONFIG_DIR env variable since it is used by default
  • If the value is not set, it is set to config/ (the current hardcoded value)

Generator uses this new customizable value. It falls back to config/ on run time to maintain backwards compatibility.

Thanks for a great framework and happy Hactober!

- try to use the NODE_CONFIG_DIRECTORY env variable
- use 'config/' as default
@jraut jraut force-pushed the feat/config-path-from-package.json branch 2 times, most recently from 81cba82 to 01cefc2 Compare October 27, 2018 14:02
@jraut
Copy link
Contributor Author

jraut commented Dec 28, 2018

Closing the pull request as the CLI and generators have been to their own repository.

@jraut jraut closed this Dec 28, 2018
@jraut jraut deleted the feat/config-path-from-package.json branch December 28, 2018 13:09
@daffl
Copy link
Member

daffl commented Dec 28, 2018

Hm, sorry about that, I've been meaning to backport this into https://github.com/feathersjs/generator-feathers next week.

@jraut
Copy link
Contributor Author

jraut commented Dec 29, 2018

All right!

Let me open this in generator-feathers if the proposed functionality could provide useful. There were issues with running tests so I was a bit unconfident about the pull request.

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