grunt-init icon indicating copy to clipboard operation
grunt-init copied to clipboard

Follow the XDG directory spec for templates directory

Open jasonkarns opened this issue 11 years ago • 2 comments

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).

jasonkarns avatar Nov 08 '14 19:11 jasonkarns

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.

jasonkarns avatar Nov 08 '14 19:11 jasonkarns

Agreed. Could use xdg-basedir.

sindresorhus avatar Nov 10 '14 07:11 sindresorhus