@2890594972
2018-08-16T01:28:38.000000Z
字数 948
阅读 762
weex
Success! Created awesome-project at D:\2018\dev-hybrid\awesome-project
Inside that directory, you can run several commands:
npm start
Starts the development server for you to preview your weex page on browser
You can also scan the QR code using weex playground to preview weex page on native
// 你可以启动开发服务,在浏览器预览weex page
// 你也可以通过扫码QR,在原生手机上,weex playground预览
npm run dev
Open the code compilation task in watch mode
// 在watch模式下,打开代码编译任务
npm run ios
(Mac only, requires Xcode)
Starts the development server and loads your app in an iOS simulator
// 在ios环境下,需要xcode
npm run android
(Requires Android build tools)
Starts the development server and loads your app on a connected Android device or emulator
//在android环境下
// 启动开发服务,加载手机app来连接android设备浏览器
npm run pack:ios
(Mac only, requires Xcode)
Packaging ios project into ipa package
npm run pack:android
(Requires Android build tools)
Packaging android project into apk package
npm run pack:web
Packaging html5 project into `web/build` folder
npm run test
Starts the test runner
To get started:
cd awesome-project
npm start
Enjoy your hacking time!