grunt-init
grunt-init copied to clipboard
Follow the XDG directory spec for templates directory
Can we follow the XDG specification for where to place configuration files? These templates would be best placed in $XDG_CONFIG_HOME/grunt-init/templates. Or similar; the $XDG_CONFIG_HOME being the crucial part.
Dropping a mass of configuration files in $HOME is antiquated. It causes a mass of files in one's home directory and inability to easily configure or move the config-home (to say, a network mount).
A partway solution that many projects have adopted to ease the transition, is to use the traditional $HOME directory unless the XDG directory exists; thereby making XDG support (at least at first) an opt-in only situation.
Agreed. Could use xdg-basedir.