grunt

阅读更多

一、grunt安装

npm install -g grunt

npm install -g grunt-init

二、模板安装

  • commjs模板

git clone [email protected]:gruntjs/grunt-init-commonjs.git H:\Users\用户名\AppData\Roaming\npm\node_modules\grunt-init\templates\commonjs

 

  • jquery插件模板

git clone [email protected]:gruntjs/grunt-init-jquery.git H:\Users\用户名\AppData\Roaming\npm\node_modules\grunt-init\templates\jquery

  • gruntfile文件模板

git clone [email protected]:gruntjs/grunt-init-gruntfile.git H:\Users\用户名\AppData\Roaming\npm\node_modules\grunt-init\templates\gruntfile

三、项目脚手架

 

grunt-init commonjs

 

 

 

Please answer the following:
[?] Project name (test) test
[?] Description (The best project ever.)
[?] Version (0.1.0)
[?] Project git repository (git://github.com/huchengyi/test.git)
[?] Project homepage (https://github.com/huchengyi/test)
[?] Project issues tracker (https://github.com/huchengyi/test/issues)
[?] Licenses (MIT)
[?] Author name (none)
[?] Author email (none)
[?] Author url (none)
[?] What versions of node does it run on? (>= 0.10.0)
[?] Main module/entry point (lib/test)
[?] Npm test command (grunt nodeunit)
[?] Do you need to make any changes to the above before continuing? (y/N)
 npm install

 

 

 

你可能感兴趣的:(grunt,模板)