Binance Devtools
This document will introduce how to use Binance Devtools.
IDE Usage
Create a new application
You can enter Create Project page from Project List page.
In the Create Project page, select an empty directory, IDE will generate a simple project under the directory.
Also you can create new project with @binance/mp-cli, CLI will generate a simple project by running:
$ bmp init [project-name]
Import an existing application
You can import an existing application from the directory with app.json and project.config.json
If you create the project with CLI, please run the following command in the root directory of the project:
$ bmp dev
And import the .bmp/build directory of the project.
Inspect with IDE
Select a project from Project List page, click Open to enter Main Interface, you can inspect your application.
Preview the developing application on the device
Login IDE with Binance account, and make sure APPID is correct (in the Details Panel). If you create the project with CLI, please run the following command in the root directory of the project to generate code for real device:
$ bmp build
Clicking Preview in the Tool Bar, IDE will bundle and upload your application. After uploading, IDE will generate a QR Code, you can scan the QR Code with Binance App to preview your application.
Upload to mini program platform
Login IDE with Binance account, and make sure APPID is correct (in the Details Panel). If you create the project with CLI, please run the following command in the root directory of the project to generate code for real device:
$ bmp build
Clicking Upload in the Tool Bar, IDE will bundle and upload your application. After uploading, you can manage the version from mpp website.