0.0.2 • Published 8 years ago
weex-starter-cli v0.0.2
weex-starter-cli
weex-starter-cli
Install Cli
npm install weex-starter-cli -ggetting start
1.create directory
mkdir helloweex2.checkout directory
cd helloweex3.init project
weex-starter-cli4.init iOS
need bundle exec pod install // pod install
open project and run by Xcode // open project run projectfile structure
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)
npm scripts
# 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