mac上前端框架开发App的相关指令

1、配置环境变量
open ~/.bash_profile
source ~/.bash_profile
2、打开iOS模拟器
open -a Simulator
3、打开安卓模拟器
cd ~/Library/Android/sdk/emulator
emulator -avd deviceName
4、React native
npm install -g yarn react-native-cli
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
react-native init myreactnative
cd myreactnative
react-native run-ios
react-native run-android
5、weex
npm install weex-toolkit -g
weex create my-weex
cd my-weex
npm install
npm start (weex run web)
npm run ios (weex platform add ios   weex run ios)
npm run android (weex platform add android   weex run android)
weex debug
6、flutter
flutter create myflutter
cd myflutter
flutter devices
flutter run
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容