@2890594972
2018-02-26T02:23:41.000000Z
字数 1672
阅读 771
weex
MacBookPro:~ xiangjun$ weex create weex-app
? May weex-toolkit anonymously report usage statistics to improve the tool over
time? Yes
? Which npm registry you perfer to use? npm
10:08:31 : Set telemetry => true
10:08:31 : Set registry => http://registry.npmjs.org
Set telemetry = true
Set 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? (recom
mended) yarn
10:21:34 : Generated weex-app
# Installing project dependencies ...
# ========================
/bin/sh: yarn: command not found
Success! Created weex-app at /Users/xiangjun/weex-app
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
npm run dev
Open the code compilation task in watch mode
npm run ios
(Mac only, requires Xcode)
Starts the development server and loads your app in an iOS simulator
npm run android
(Requires Android build tools)
Starts the development server and loads your app on a connected Android device or emulator
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 weex-app
npm start