grunt-init 默认模板目录更正

grunt-init是依赖grunt项目管理的脚手架工具,各种优点无须赘述,默认的template路径的作用:可以把自定义或其他模板放置其中,应用的时候直接调用模板名,不用每次寻找路径;

在安装grunt-init的过程中,官方教程给出的template默认路径有点错误.

Installing templates

Once templates are installed into your ~/.grunt-init/ directory (%USERPROFILE%\.grunt-init\ on Windows) they will be available for use via grunt-init. It's recommended that you use git to clone a template into that directory. For example, the grunt-init-jquery template can be installed like so:

依据官网%USERPROFILE%表示C:\Users\当前用户名;则默认的template路径是C:\Users\当前用户名\.grunt-init;

安装了两次始终找不到.grunt-init目录,经过几次折腾,终于找到了。

其实默认模板路径在:C:\Users\用户名\AppData\Roaming\npm\node_modules\grunt-init\templates

 

posted on 2013-10-30 11:43  中传思客  阅读(340)  评论(0编辑  收藏  举报

导航