Skip to content

Support XDG Base Directory Specfication #16049

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

Closed
muradm opened this issue Nov 3, 2019 · 2 comments
Closed

Support XDG Base Directory Specfication #16049

muradm opened this issue Nov 3, 2019 · 2 comments
Labels
area: @angular/cli feature Issue that requests a new feature
Milestone

Comments

@muradm
Copy link
Contributor

muradm commented Nov 3, 2019

🚀 Feature request

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ X ] config
- [ ] help
- [ ] version
- [ ] doc

Description

There is a XDG Base Directory Specification which supports keeping home directory in linux environments tidy. Currently, @angular/cli keeps its global configuration in $HOME/.angular-config.json which is poluting user's home directory. According to mentioned above specification, it is advised to keep configuration under $HOME/.config directory by default.

Describe the solution you'd like

Non intrusive solution is provided with #16034 PR. Basically it makes everything working as it is now, until user decides to move current $HOME/.angular-config.json to $XDG_CONFIG_HOME/angular/.angular-config.json. Then @angular/cli will continue using .angular-config.json from new location. Where $XDG_CONFIG_HOME as per specification: if provided in the environment new location will be $XDG_CONFIG_HOME/angular/.angular-config.json other wise $HOME/.config/angular/.angular-config.json. This way it does not break other non XDG users like people under Windows.

Describe alternatives you've considered

No alternatives.

@alan-agius4 alan-agius4 added area: @angular/cli feature Issue that requests a new feature labels Nov 3, 2019
@ngbot ngbot bot added this to the Backlog milestone Nov 3, 2019
@clydin
Copy link
Member

clydin commented Nov 25, 2019

Closing as #16034 appears to have been merged.

@clydin clydin closed this as completed Nov 25, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular/cli feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

3 participants