【文件属性】:
文件名称:grunt-init-custom-gruntfile:自定义gruntfile模板
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-25 05:53:56
JavaScript
grunt-init-custom-gruntfile
使用创建一个基本的Gruntfile。
安装
如果尚未安装,请安装 。
一旦安装了grunt-init,请将此模板放置在~/.grunt-init/目录中。 建议您使用git将此模板克隆到该目录中,如下所示:
git clone https://github.com/PeterDulworth/grunt-init-custom-gruntfile.git ~/.grunt-init/custom-gruntfile
(Windows用户,请参阅以获取正确的目标目录路径)
用法
在命令行中,cd进入一个空目录,运行此命令并按照提示进行操作。
grunt-init gruntfile
请注意,此模板将在当前目录中生成文件,因此,如果您不想覆盖现有文件,请确保先更改为新目录。
【文件预览】:
grunt-init-custom-gruntfile-master
----root()
--------Gruntfile.js(3KB)
--------.jshintrc(6KB)
----LICENSE(1KB)
----template.js(3KB)
----README.md(894B)