wb

weex-buildtool

Deprecated

Showing:

Popularity

Downloads/wk

1

GitHub Stars

11

Maintenance

Last Commit

5yrs ago

Contributors

19

Package

Dependencies

40

License

GPL-3.0+

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Readme

[TOC]

Installation

Nodejs

Please make sure you have Nodejs installed. v6.x is recommended while v4.x is the minimium supported version.

node-gyp

if your

$ node-gyp --version

output less then 3.4.0 or no node-gpy installed in your system , please run below cmd to install or upgrade node-gyp

$ npm install -g node-gyp

Install

$ npm install -g weex-buildtool

Android

To generate a Android .apk file, there are several steps you should follow, SEE MORE.

iOS

To generate a iOS .ipa or .app file, there are several steps you should follow, SEE MORE.

Quick Start

Initial your weex project and download dependencies.

$ weex init && npm install

Then, initial build project

$ weex-buildtool build init

Build iOS package and run in a real device or simulator. (as well as Android)

$ weex-buildtool run ios

Handbook

Commands

# init
$ weex-buildtool build init [android|ios|all] [-u url]

# build, genrate a apk/ipa/app package, default to -r
$ weex-buildtool build [android|ios|html|all] [-d|-r]

# emulate, run the package in real device or simulator, default to -d
$ weex-buildtool emulate [android|ios|html|all] [-d|-r]

# run, equals to build&emulate, default to -d
$ weex-buildtool run [android|ios|html] [-d|-r]

# tips: -d, debug | -r, release
#       -u url, specific a third party template project,
#               see http://xxxxx

Custom Package Infomation

You can custom package name, app name, icon, splash, etc. as you want at config/config.<platform>.js.

See more about configuration.

Certificate & Signature

Certificate and signature are supported in release package.

Make sure you have owned a valid cert or keystore, and edit config/config.<platform>.js.

See more about configuration.

Custom Android/iOS Native Code

While a default native project are provided, you can also custom it or create a completely new one for more amazing purpose!

However, you must obey some rules, for Android, for iOS.

Our default project are hosting at Android iOS, you can fork and custom without limitation.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100