WeChat Mini Program Convert to Taro
Taro can convert native WeChat mini program applications into Taro projects, thus making the project a multi-terminated application.
The converted code is highly readable and can continue to be used for secondary development using React (conversion to Vue is supported in the future).
Reverse conversion steps
- Install the Taro command line tool.
$ npm i -g @tarojs/cli
- Run the
convert
command in the root directory of the WeChat mini program project to convert.
# The converted code is stored in the `taroConvert` folder in the root directory
$ taro convert
- Go to the
taroConvert
directory and install the dependencies on.
$ cd taroConvert
$ npm install
- Run the
build
command to compile the project to any platform.
$ taro build --type [platform]