@2890594972
2018-02-26T02:23:41.000000Z
字数 1672
阅读 868
weex
MacBookPro:~ xiangjun$ weex create weex-app? May weex-toolkit anonymously report usage statistics to improve the tool overtime? Yes? Which npm registry you perfer to use? npm10:08:31 : Set telemetry => true10:08:31 : Set registry => http://registry.npmjs.orgSet telemetry = trueSet registry = "http://registry.npmjs.org"10:08:31 : You can config this configuration again by using `weex config [key] [value]`10:08:31 : Enjoying your coding time!This command need to install weexpack. Installing...? Project name weex-app? Project description A weex project? Author xiangjun9988 <xiangjun9988@163.com>? weex build lts? babel compiler (https://babeljs.io/docs/plugins/#stage-x-experimental-presets)stage-0? Use vue-router to manage your view router? (not recommended) Yes? Use ESLint to lint your code? No? Set up unit tests No? Should we run `npm install` for you after the project has been created? (recommended) yarn10:21:34 : Generated weex-app# Installing project dependencies ...# ========================/bin/sh: yarn: command not foundSuccess! Created weex-app at /Users/xiangjun/weex-appInside that directory, you can run several commands:npm startStarts the development server for you to preview your weex page on browserYou can also scan the QR code using weex playground to preview weex page on nativenpm run devOpen the code compilation task in watch modenpm run ios(Mac only, requires Xcode)Starts the development server and loads your app in an iOS simulatornpm run android(Requires Android build tools)Starts the development server and loads your app on a connected Android device or emulatornpm run pack:ios(Mac only, requires Xcode)Packaging ios project into ipa packagenpm run pack:android(Requires Android build tools)Packaging android project into apk packagenpm run pack:webPackaging html5 project into `web/build` foldernpm run testStarts the test runnerTo get started:cd weex-appnpm start
