yeomain实践

http://yeoman.io/generators/

yo generator安装:就是在每个模块前加 generator 如:

安装angular:

npm install -g generator-angulary

使用: yo + generaotr名称

如:yo angular testAngrular

根据提示安装你的项目

 

If you do npm config set production, then that sets the --production configuration flag for all npm commands, by setting production = true in the ~/.npmrc file.

If you do npm start --production, then it'll set the NODE_ENV=production environ for the start script.

If you do npm install --production then it won't install devDependencies locally.

 

posted @ 2015-05-24 22:29  zhongpingwang  阅读(202)  评论(0编辑  收藏  举报