安装
因为npm有许多问题,这里使用淘宝的cnpm 安装, cnpm安装教程
1. 安装WePY
cnpm install wepy-cli -g
2. 生成开发目录
使用
wepy list
可以查看模板列表
# 这里新建一个名字为 Hello 的项目
$ wepy init empty hello
输入上边的命令, 然后出现下边的参数设置
3. 安装依赖
$ cd hello
$ cnpm install
4. 开启编译(实时)
wepy build -w --log trace
其他