base on [email protected].
基于gulp v 3.0版本的,最近发布的gulp 没做兼容
npm install -g yo@3 bower gulp@3
npm install -g generator-kmapp
yo kmapp
gulp serve
自动打开浏览器,并开启自动刷新功能,赶快试试吧!
gulp build
生产的目录dist, 开发中使用的是相对路径,所以可以直接点击查看html的效果
Yeoman generator has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.
If you'd like to get to know Yeoman better and meet some of his friends, gulp and Bower, check out the complete Getting Started Guide.
前端自动化——快速的移动Web开发模式(Yeoman: generator-gulp-webapp)
最终想写个自己的generator 统一开发环境,所以有了 generator-kmapp,km 来源公司名称 孔明科技。
- 自定义Yeoman生成器 自己整理了下
MIT