一. yeoman介绍node
主要由如下3部分构成:web
二. yeoman安装(windows安装)npm
yeoman主要的安装步骤以下:windows
npm install -g yo
因为yo命令在产生不一样的应用框架的时候须要其余的插件,所以,在安装的时候,须要安装对应的插件,如下以webapp为例,其命令以下:架构
npm install -g generator-webapp
3. 完整的流程以下所示:app
yo webapp # scaffold out a skeleton web app project bower install underscore # install a dependency for your project from Bower grunt # build the application for deployment
4. AngularJS generator的产生流程以下:框架
npm install -g generator-angular # install generator yo angular # scaffold out a AngularJS project bower install angular-ui # install a dependency for your project from Bower grunt test # test your app grunt server # preview your app grunt # build the application for deployment
以上参考http://yeoman.io/。webapp