npm install weex-starter-cli -g
1.create directory
mkdir helloweex
2.checkout directory
cd helloweex
3.init project
weex-starter-cli
4.init iOS
need bundle exec pod install // pod install
open project and run by Xcode // open project run project
src/*
: all Vue's source codeapp.js
: entrance of the Weex pagebuild/*
: some build scriptsdist/*
: where places generated codeassets/*
: some assets for Web previewindex.html
: a page with Web preview and qrcode of Weex js bundleweex.html
: Web render.babelrc
: babel config (preset-2015 by default).eslintrc
: eslint config (standard by default)
# build in dev-server and run project
npm run dev
# build the js bundles for dev
npm run build:dev
# build the js bundles for qa
npm run build:qa
# build the js bundles for prod
npm run build:prod
# run api-server
npm run serve