gruntjs / grunt-init

Generate project scaffolding from a template.
http://gruntjs.com/project-scaffolding
MIT License
193 stars 58 forks source link

Follow the XDG directory spec for templates directory #88

Open jasonkarns opened 9 years ago

jasonkarns commented 9 years ago

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 commented 9 years ago

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.

sindresorhus commented 9 years ago

Agreed. Could use xdg-basedir.