Antmove-小程序跨平台开发解决方案

Antmove是一款让小程序跨平台开发变得简单的工具,支持一键将微信小程序项目转换为支付宝小程序,减少重复开发工作。具有易用性高、转换覆盖全面、生成代码可读性强等特点。

Check out Antmove-小程序跨平台开发解决方案 on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

蚂蚁搬家工具<p><a href="https://github.com/ant-move/antmove" target="_blank" rel="noopener noreferrer"><img width="200" src="https://img.alicdn.com/tfs/TB1ktoia.D1gK0jSZFGXXbd3FXa-765-765.png" alt="antmove logo"></a></p>蚂蚁搬家工具,让小程序跨平台开发变得简单。> 一键实现微信小程序项目到支付宝小程序的迁徙,不再为重复开发而烦恼。antmove## 特性* 简单易使用,无学习成本,直接上手* 转换覆盖率全面,及时跟进各小程序平台更新情况* 配套详细的编译时日志/运行时日志工具* 编译生成代码可读性强,可二次编程* 二次编译支持## 文档* 官方文档## 安装### 使用 npm 或 yarn 安装> 我们推荐使用 npm 或 yarn 的方式进行开发,不仅可在开发环境轻松调试,也可放心地在生产环境打包部署使用,享受整个生态圈和工具链带来的诸多好处。* 全局安装bash$ npm install antmove -g* 本地安装bash$ npm install antmove --save> 如果你的网络环境不佳,推荐使用 cnpm。## 快速开始### 命令行使用> 通过 npm 或 yarn 全局安装才能使用如下命令行提供两种可用的命令行调用方式* antmove wx-alipay(使用前请将终端切换到需转换编译的微信小程序项目路径)bashantmove wx-alipay ./dist/alipay-app* antmove - 该命令更加灵活,可配置输出输出目录/编译模式等bashantmove -i ./wechat-mini/project -o ./dist/alipay-mini/project --env development> 如上的命令表示将 ./wechat-mini/project 微信小程序项目转换为支付宝小程序项目,转换到 ./dist/alipay-mini/project 目录### 命令行参数说明* --input,-i * 可选,编译源码目录,如果不传则是当前目录* --output,-o * 必传,编译输出目录* --env,-e * 可选(development/production),编译模式,生产模式代码会压缩,无编译日志及运行时日志### Node.js 使用方式#### 示例jsconst 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();## API### transformFramework工具实例生成函数。jsconst transformFramework = require('antmove');const App = transformFramework(); // 得到的 app 实例即可进行转换处理操作### App* use | Function - App.use(plugin, pluginOptions) - 挂载插件到实例上,可挂载多个,按挂载顺序执行 * plugin: 转换插件 * pluginOptions: 转换插件配置项 * entry | String - 转换源码目录 * dist | String - 转换后代码输出目录 * env | String - 编译环境设置(env/prod) * 默认值为生产环境 * remote | Boolean - 是否拉去远程拉取 polyfill 代码 * 默认开启* start | Function - 开始编译操作## 内测中(即将推出)* 支付宝转百度能力支持* 支付宝转微信能力支持* 支付宝转头条能力支持* 页面/组件维度转换能力支持## 谁在使用* e代驾* 微代驾* 趣满满* 天气通> 如果你的公司和产品使用了 Ant move,欢迎到这里留言。## 贡献欢迎参与蚂蚁搬家项目的开发建设和讨论。> 提交 pull request 之前请先提 Issue 讨论.## 协议GPL## 联系如果您在使用的过程中碰到问题,可以通过下面几个途径寻求帮助。* 钉钉微信交流群: <img width='200px' src='https://ant-move.github.io/website/img/contact-dingding.jpg'/> <img width='200px' src='https://img.alicdn.com/tfs/TB1V0HBb1L2gK0jSZFmXXc7iXXa-752-974.jpg'/>* 邮件:[email protected]

Latest Weekly Picks

make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

Leo Wade
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Maris
www.videotoblog.ai favicon
Weekly Pick

Convert videos into awesome blog posts.

Video To Blog
www.sellerpic.ai favicon
Weekly Pick

SellerPic is the all-in-one AI design platform for e-commerce

SellerPic
fastimage.ai favicon
Weekly Pick

Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.

Fast AI Team
linkedinpro.daisy.so favicon
Weekly Pick

AI-powered tool that transforms casual photos into professional LinkedIn headshots instantly. No photographer needed—just upload and download.

Gabriel
crevas.ai favicon
Weekly Pick

Crevas unifies Veo 3, Sora 2, Nano Banana and more into one intuitive canvas — so filmmakers can script, prompt, and generate cinematic stories without switching tools or losing consistency.

Spark Alpha
fotominiatur.com favicon
Weekly Pick

AI Foto Edit - Text to Image & Image Edit

foto miniatur