cli
This document is a comprehensive guide on how to utilize the bmp Command Line Interface (CLI).
#
CLI DownloadLet's start by installing the CLI.
#
CLI UsageBreeze through the following commands to get used to the bmp CLI:
#
Creating a New ProjectRunning the above command will conjure an initialized mini-program project brimming with potential!
For instance:
#
Adding Support to an Existing React ProjectThe above commands spin off a .bmp
directory and add essential configurations to the existing tsconfig.json
file. This ensures support for importing @binance/*, thereby enabling TypeScript syntax support.
#
Kicking Off with devServerIntroducing the command that compiles your project and spins up devServer
, listening on locahost:3000
by default. As you hop into the project and select the dist
project, you will be greeted by your running mini-program. With liveReload
enabled on devServer
, any changes to your code will trigger an automatic rebuild and refreshes the page.
#
Build and CompileCompiling the project code has never been easier! The above command renders mini-program files in the project directory. With Binance Devtools, developers can smoothly upload these files to the management portal for release or swift online testing.