[关闭]
@2890594972 2018-08-16T01:28:38.000000Z 字数 948 阅读 762

weex安装

weex


  1. Success! Created awesome-project at D:\2018\dev-hybrid\awesome-project
  2. Inside that directory, you can run several commands:
  3. npm start
  4. Starts the development server for you to preview your weex page on browser
  5. You can also scan the QR code using weex playground to preview weex page on native
  6. // 你可以启动开发服务,在浏览器预览weex page
  7. // 你也可以通过扫码QR,在原生手机上,weex playground预览
  8. npm run dev
  9. Open the code compilation task in watch mode
  10. // 在watch模式下,打开代码编译任务
  11. npm run ios
  12. (Mac only, requires Xcode)
  13. Starts the development server and loads your app in an iOS simulator
  14. // 在ios环境下,需要xcode
  15. npm run android
  16. (Requires Android build tools)
  17. Starts the development server and loads your app on a connected Android device or emulator
  18. //在android环境下
  19. // 启动开发服务,加载手机app来连接android设备浏览器
  20. npm run pack:ios
  21. (Mac only, requires Xcode)
  22. Packaging ios project into ipa package
  23. npm run pack:android
  24. (Requires Android build tools)
  25. Packaging android project into apk package
  26. npm run pack:web
  27. Packaging html5 project into `web/build` folder
  28. npm run test
  29. Starts the test runner
  30. To get started:
  31. cd awesome-project
  32. npm start
  33. Enjoy your hacking time!
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注