最近准备做一个微信小程序,以前一直用的小程序原始api做,但是这次准备用一个框架来做练习,当然在做之前需要比较一下现在小程序框架的优缺点。 经过认真挑选,选定wepy,Taro,uni-app,mpvue, 由于对react不熟悉,故放弃Taro, 至于其他三个, 他们的DSL都是VUR, 可以考虑。

至于哪个好,我也不知道,准备一个一个试一试, 从wepy开始吧!一个一个试,是有点麻烦,反正现在时间充裕,项目暂未开始,就当学习了!!

wepy安装步骤

$ npm install @wepy/cli -g # 全局安装 WePY CLI 工具
$ wepy init standard myproj # 使用 standard 模板初始化项目
$ cd myproj # 进入到项目目录
$ npm install # 安装项目依赖包
$ npm run dev # 监听并且编译项目

wepy build --watch运行后提示ERR Cannot read property 'addDeps' of undefined。

上面这是1.7.x的安装后运行进行以上提示,而我们安装的是2.x, git上已经更新安装方式,第一步 npm install @wepy/cli -g 更改为npm install @wepy/cli@next -g

1. npm install @wepy/cli@next -g
2. wepy init standard myproject
3. cd myproject
4. npm install
5. wepy build --watch

按照此步骤安装后运行结果
[16:17:21] info build app start...
[16:17:22] info app building App
[16:17:22] info component building components
[16:17:23] info component building components
[16:17:23] info component building components
[16:17:23] info vendor building vendor
[16:17:23] info assets building assets
[16:17:23] info build finished
[16:17:23] info watching...

最新文章

  1. jsp原理
  2. Jquery父页面和子页面的相互操作
  3. linux琐碎知识点
  4. HDU 2841 Visible Trees 数论+容斥原理
  5. poj 2253 Frogger dijkstra算法实现
  6. express 4.x 文件上传
  7. Mac上面用来录屏的软件(录制gif图片或者mov)
  8. 2.如何搭建MQTT环境
  9. 解读python中SocketServer源码
  10. javascript中的Date对象和Math对象
  11. BEAMER中 Package Listings Warning: Text dropped after begin of listing on input line xx
  12. mongodb .explain('executionStats') 查询性能分析(转)
  13. 运维监控-Zabbix Server 使用微信 WeChat 告警
  14. Hello Shader之Hello Trangle
  15. Opengl绘制我们的小屋(二)第一人称漫游
  16. uva-10050-模拟水题
  17. Notes of Daily Scrum Meeting(11.11)
  18. 01b-1: 性能测度
  19. java 检测代理IP是否准确
  20. Python字符串操作大全(非常全!!!)

热门文章

  1. Electron npm install 常见错误(Linux)
  2. ArcGIS API for JavaScript小白入门
  3. 使用navicat连接只开放内网ip连接的数据库
  4. 【2期】JVM必知必会
  5. 【cf960G】G. Bandit Blues(第一类斯特林数)
  6. 必威电竞2019或将赞助SKT,携手Faker再创辉煌
  7. Web安全测试学习笔记-DVWA-登录密码爆破(使用Burp Suite)
  8. Python time.time()方法
  9. 2019年百度最新Java工程师面试题
  10. 多线程六 同步容器&并发容器