Antmove - Mini program converter, converts Alipay/WeChat mini programs into multi-terminal mini programs, making cross-platform development of mini programs easy.
Achieve small program conversion and migration with one click, no longer worry about repeated development.
Search for Antmove
in the vscode extension, download and install the Antmove vscode conversion plug-in to achieve one-click conversion.
We recommend using npm or yarn for development. Not only can it be easily debugged in the development environment, but it can also be safely packaged and deployed in the production environment, enjoying the many benefits brought by the entire ecosystem and tool chain.
$ npm install antmove -g
or
$ yarn global add antmove
$ npm install antmove --save
or
$ yarn add antmove
If your network environment is not good, it is recommended to use cnpm.
Install the extension (Antmove - antmove-vscode-plugin)
Open the project to be converted in VsCode
Open the VsCode command panel
command + shift + p
ctrl + shift + p
Enter Antmove
Run Antmove: Run antmove
command
After running the above command, a pop-up window will be displayed. Select the generated code storage directory after conversion.
Conversion completed
antmove-vscode-plugin
This plug-in depends on the vscode code editor and can only be used by users who have vscode installed.
npm i -g antmove
Install globally through npm or yarn to use the following command line
antmove wx-alipay
(please switch the terminal to the WeChat applet project path that needs to be converted and compiled before use) antmove wx-alipay -i ./ -o ./dist/alipay-app
antmove
- This command is more flexible and can configure the output directory/compilation mode, etc. antmove wx-alipay -i ./wechat-mini/project -o ./dist/alipay-mini/project --env development
The above command means converting the
./wechat-mini/project
WeChat mini program project to the Alipay mini program project and converting it to the./dist/alipay-mini/project
directory. If you do not want to enter parameters, you can experience the interactive command mode and execute Justantmove
.
--input,-i
--output,-o
--env,-e
For more configuration items, please refer to the configuration parameter details.
const path = require ( 'path' ) ;
const transformFramework = require ( 'antmove' ) ;
const WechatPlugin = require ( '@antmove/wx-alipay' ) ;
let outputPath = path . join ( __dirname , '../../dist' ) ;
let inputDirPath = path . join ( __dirname , '../../examples/miniprogram-demo/miniprogram' ) ;
const App = transformFramework ( ) ;
App . use (
WechatPlugin ,
{
entry : inputDirPath ,
dist : outputPath + '/alipaymini-demo' ,
env : 'development'
} )
. start ( ) ;
The WeChat mini program shown here is the original mini program application, and the other platform mini programs below are converted based on these WeChat mini programs.
If your company and products use Antmove, please leave a message here.
Welcome to participate in the development, construction and discussion of the Antmove project.
Please submit an Issue for discussion before submitting a pull request.
GPL