Weexpack is our next generation of engineering development kits. It allows developers to create weex projects with simple commands and run the project on different development platforms.
First, install the weex-pack command globally:
$ npm install -g weexpack
Then, create the weex project:
$ weexpack init appName
Weexpack automatically creates a new directory named appName and pulls the project template to that directory.
The final resulting directory structure looks like this:
-> / appName . |—— .gitignore |—— README.md |—— package.json |—— webpack.config.js |—— /src | |—— index.we |—— /html5 | |—— index.html |—— /ios | |—— /playground | |—— /sdk | |—— /WXDevtool |—— /android | |—— /playground | |—— /appframework
Next, go to the directory, and install the dependencies:
$ cd appName && npm install
On the ios platform, run the project:
$ weexpack run ios
In the android platform, run the project:
$ weexpack run android
On the html5 platform, run the project:
$ weexpack run html5
For developers who have a packaged release, you can make changes directly to the playground project. Follow-up, weexpack will be further added to the packaging, testing and other functions.