Grunt-init是一個用來自動建立項目的架構工具,它會創建一個完整的目錄結構和一個基本的配置環境,固然具體文件和內容取決於所選擇的模板node
安裝grunt-initjquery
使用git
npm install -g grunt-init
-g 會添加grunt-init到環境變量,容許在任何地方運行grunt-init命令github
grunt-init --help
如下是輸出npm
grunt-init: Generate project scaffolding from a template. (v0.3.2)
Usage
grunt-init [options] [template]
Options
--help, -h Display this help text.
--no-color Disable colored output.
--debug, -d Enable debugging mode for tasks that support it.
--stack Print a stack trace when exiting with a warning or fatal error.
--force, -f A way to force your way past warnings. Want a suggestion? Don't
use this option, fix your code.
--no-write Disable writing files (dry run).
--verbose, -v Verbose mode. A lot more information output.
--version, -V Print the grunt version. Combine with --verbose for more info.
Available templates
(No templates found)
Templates that exist in the C:\Users\t\.grunt-init directory may be run with
"grunt-init TEMPLATE". Templates that exist in another location may be run with
"grunt-init /path/to/TEMPLATE". A template is a directory that must contain, at
the very minimum, a template.js file.
For more information, see http://gruntjs.com/project-scaffolding
從輸出可用看出沒有可用的模板架構
幾個Grunt-init維護的模板grunt