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

feat(xdg-compliance): rc file location hierarchy #1326

Merged
merged 1 commit into from Jun 5, 2018
Merged

feat(xdg-compliance): rc file location hierarchy #1326

merged 1 commit into from Jun 5, 2018

Conversation

tristan957
Copy link
Contributor

@tristan957 tristan957 commented May 18, 2018

vue-cli now uses the following hierarchy for hosting its rc file:

  • VUE_CLI_CONFIG_PATH
  • XDG_CONFIG_HOME/vue/.vuerc
  • HOME/.config/vue/.vuerc
  • HOME/.vuerc

Let me know if you need something changed

I would like to point out that the middle 2 paths probably shouldn't be hidden files. Left that up to the devs though.

closes #1325

}

// XDG defined backup folder if XDG_CONFIG_HOME is undefined
xdgConfigHome = path.join(os.homedir(), '.config')
Copy link
Member

Choose a reason for hiding this comment

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

This would be a breaking change. We should only change behavior when XDG_CONFIG_HOME is explicitly present.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll make the change later today. Thanks

`vue-cli` now uses the following hierarchy for hosting its rc file:

* `VUE_CLI_CONFIG_PATH
* `XDG_CONFIG_HOME/vue/.vuerc`
* `HOME/.config/vue/.vuerc`
* `HOME/.vuerc`

closes #1325
@tristan957
Copy link
Contributor Author

Should be fixed now

@yyx990803 yyx990803 merged commit ec87266 into vuejs:dev Jun 5, 2018
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.

Use XDG_CONFIG_HOME for the .vuerc file
2 participants