使用Yeoman生成项目骨架

What's Yeoman?(http://yeoman.io/)

Yeoman helps you to kickstart new projects, prescribing best practices and tools to help you stay productive.

To do so, we provide a generator ecosystem. A generator is basically a plugin that can be run with the `yo` command to scaffold complete projects or useful parts.

As firm believers in good documentation and well thought out build processes, Yeoman includes support for linting, testing, minification and much more, so developers can focus on solutions rather than worrying about the little things.

Tools

The Yeoman workflow comprises three types of tools for improving your productivity and satisfaction when building a web app: the scaffolding tool (yo), the build tool (Grunt, Gulp, etc) and the package manager (like Bower and npm).

All three of these tools are developed and maintained separately, but work well together as part of our prescribed workflow for keeping you effective.

 

  1. 安装 npm install -g yo
  2. 安装项目模板 npm install -g generator-[name], 如 npm install -g generator-angular
  3. 生成项目: yo angular [project-name]

 

你可能感兴趣的:(yeoman)