jsx2mp-cli
A cli tool to transform Rax JSX based project to MiniApp.
Usage as cli tool.
-
Create a miniapp based project using rax-cli.
rax init myApp
-
Install jsx2mp-cli
npm install jsx2mp-cli -g
-
Transform your project.
cd myApp
jsx2mp start
The tool will keep watching your source files before being interpreted by Ctrl + C
.
-
Use 小程序开发工具
to open dist
directory under your project path.
You can also use rax-scripts to build miniapp, which intergrate the jsx2mp-cli.
Integration Testing
As project-based integration testing, the test includes the following cases:
- import static assets