You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
haii,
i was wondering if there is any interest to adhere to the xdg base desktop specification (on linux), even if it's just a little bit? right now i see a ~/.yo-rc-global.json file created in the home directory. i mainly would like to see it in $XDG_CONFIG_HOME/yeoman/yo-rc-global.json (~/.config/yeoman/yo-rc-global.json) to clean up the home directory. i think it would be best for compatibility if we read make the config resolve to $XDG_CONFIG_HOME/yeoman/yo-rc-global.json, but only if the ~/.yo-rc-global.json file doesn't exist - thoughts?. i can make a pr if needed :) more info on the xdg base directory specification can be found here
thankies,
edwin
The text was updated successfully, but these errors were encountered:
@eankeen seems like yo never writes to .yo-rc-global.json.
Fell free to create a PR here at generator first, then you can update yo to read from the updated version.
If an old generator is called, it will keep writing to $home/.yo-rc-global.json.
So:
generator 1 till 4.11.0 will write exclusively to $home/.yo-rc-global.json.
generator 4.11.0 < x < 5 should write to $home/.yo-rc-global.json if it contains the generator namespace, otherwise it should write to ~/.config/yeoman/yo-rc-global.json
generator >= 5 should move the generator namespace to ~/.config/yeoman/yo-rc-global.json if it exist at $home/.yo-rc-global.json and don't exists at ~/.config/yeoman/yo-rc-global.json
yo should do a simple merge between both configs.
$home/.yo-rc-global.json will not exist if every generator is >4.11.0
I am going to release 4.11.0 tomorrow, I can do a 4.12.0 for this feature, otherwise this will be last 4.x release.
Type of issue
haii,
i was wondering if there is any interest to adhere to the xdg base desktop specification (on linux), even if it's just a little bit? right now i see a
~/.yo-rc-global.json
file created in the home directory. i mainly would like to see it in$XDG_CONFIG_HOME/yeoman/yo-rc-global.json
(~/.config/yeoman/yo-rc-global.json
) to clean up the home directory. i think it would be best for compatibility if we read make the config resolve to$XDG_CONFIG_HOME/yeoman/yo-rc-global.json
, but only if the~/.yo-rc-global.json
file doesn't exist - thoughts?. i can make a pr if needed :) more info on the xdg base directory specification can be found herethankies,
edwin
The text was updated successfully, but these errors were encountered: