{"id":13671030,"url":"https://github.com/ant-move/Antmove","last_synced_at":"2025-04-27T14:33:06.246Z","repository":{"id":44729821,"uuid":"197347437","full_name":"ant-move/Antmove","owner":"ant-move","description":"小程序转换器，基于支付宝/微信小程序， 轻松地转换成其它平台的小程序。","archived":false,"fork":false,"pushed_at":"2023-11-06T05:55:10.000Z","size":4034,"stargazers_count":1321,"open_issues_count":26,"forks_count":149,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-14T19:59:01.400Z","etag":null,"topics":["alipay-miniapp","baidu-miniprogram","components","framework","miniprogram","tool","toutiao-miniprogram","wechat","wechat-mini-program"],"latest_commit_sha":null,"homepage":"https://ant-move.github.io/guide/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ant-move.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-17T08:24:24.000Z","updated_at":"2025-03-27T08:55:17.000Z","dependencies_parsed_at":"2024-06-18T21:35:36.568Z","dependency_job_id":"8291b661-499f-4913-bcc1-a156f867f6dc","html_url":"https://github.com/ant-move/Antmove","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"026a411ba3da5eb204cd0a01db634e2bab1be91f"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FAntmove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FAntmove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FAntmove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FAntmove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ant-move","download_url":"https://codeload.github.com/ant-move/Antmove/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251154276,"owners_count":21544471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alipay-miniapp","baidu-miniprogram","components","framework","miniprogram","tool","toutiao-miniprogram","wechat","wechat-mini-program"],"created_at":"2024-08-02T09:00:56.316Z","updated_at":"2025-04-27T14:33:02.597Z","avatar_url":"https://github.com/ant-move.png","language":"JavaScript","readme":"# 注意：该仓库已停止维护\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003chr/\u003e\n\n\n# 指南\n\nAntmove - 小程序转换器，基于支付宝/微信小程序转换为多端小程序，让小程序跨平台开发变得简单。\n\u003e 一键实现小程序转换迁徙，不再为重复开发而烦恼。\n\n![antmove structure](https://img.alicdn.com/tfs/TB13u6Cb4z1gK0jSZSgXXavwpXa-3852-936.png)\n\n## 特性\n\n* 简单易使用，一键转换\n* 配套详细的编译时日志/运行时日志工具\n* 编译生成代码可读性强，可二次编程\n* 二次编译支持\n* 组件转换支持\n\n## 文档\n\n* [多端代码编写指南](https://ant-move.github.io/guide/children/cross-platform.html)\n* [微信转钉钉快速指南](https://ant-move.github.io/guide/contribute/wxToDd.html)\n* [微信转支付宝快速指南](https://ant-move.github.io/guide/contribute/wxToAlipay.html)\n* [支付宝转微信快速指南](https://ant-move.github.io/guide/contribute/alipayToWx.html)\n* [支付宝转百度快速指南](https://ant-move.github.io/guide/contribute/alipayToBaidu.html)\n* [支付宝小程序使用 Antmove 组件库指南](https://ant-move.github.io/guide/contribute/alipayUseAntmove.html)\n* [钉钉小程序使用 Antmove 组件库指南](https://ant-move.github.io/guide/contribute/ddUseAntmove.html)\n* [Antmove 实现原理介绍](https://ant-move.github.io/guide/contribute/howToContribute.html)\n\n## 安装\n\n### VsCode 扩展安装\n\n在 vscode 扩展中搜索 `Antmove` 下载安装 Antmove vscode 转换插件实现一键转换。\n\n### 命令行安装\n\n\u003e 我们推荐使用 npm 或 yarn 的方式进行开发，不仅可在开发环境轻松调试，也可放心地在生产环境打包部署使用，享受整个生态圈和工具链带来的诸多好处。\n\n* 全局安装\n\n```bash\n$ npm install antmove -g\n```\n或\n```bash\n$ yarn global add antmove\n```\n\n* 本地安装\n\n```bash\n$ npm install antmove --save\n```\n或\n```bash\n$ yarn add antmove\n```\n\n\n\u003e 如果你的网络环境不佳，推荐使用 [cnpm](https://github.com/cnpm/cnpm)。\n\n## 快速开始\n\n### VsCode 扩展使用\n\n* 安装扩展（Antmove - antmove-vscode-plugin）\n* 在 VsCode 中打开要转换的项目\n* 打开 VsCode 命令面板\n    * Mac: `command + shift + p`\n    * Windows: `ctrl + shift + p`\n* 输入 `Antmove`\n* 运行 `Antmove: Run antmove` 命令\n* 运行如上命令后会给出一个弹窗，选择转换后生成代码存储目录\n* 转换完成\n\n* [antmove-vscode-plugin](https://marketplace.visualstudio.com/items?itemName=antmove-app.antmove-vscode-plugin\u0026ssr=false)\n\n\u003e 本插件依赖于 vscode 代码编辑器，安装了 vscode 的用户才能使用。\n\n\n### 命令行使用\n\n```bash\nnpm i -g antmove\n```\n\n\u003e 通过 npm 或 yarn 全局安装才能使用如下命令行\n\n* `antmove wx-alipay`（使用前请将终端切换到需转换编译的微信小程序项目路径）\n\n```bash\nantmove wx-alipay -i ./ -o ./dist/alipay-app\n```\n\n* `antmove` - 该命令更加灵活，可配置输出输出目录/编译模式等\n\n```bash\nantmove wx-alipay -i ./wechat-mini/project -o ./dist/alipay-mini/project --env development\n```\n\u003e 如上的命令表示将 `./wechat-mini/project` 微信小程序项目转换为支付宝小程序项目，转换到 `./dist/alipay-mini/project` 目录\n\u003e 如果你不想输入参数，可以体验交互式的命令方式，执行 `antmove` 即可。\n\n#### 配置参数\n\n* `--input,-i`\n    * 可选，编译源码目录，如果不传则是当前目录\n* `--output,-o`\n    * 必传，编译输出目录\n* `--env,-e`\n    * 可选（development/production），编译模式，生产模式代码会压缩，无编译日志及运行时日志\n\n\u003e 更多配置项可参考[配置参数详情](../config/)。\n\n\n### Node.js 使用方式\n\n#### 示例\n```js\nconst path = require('path');\nconst transformFramework = require('antmove');\nconst WechatPlugin = require('@antmove/wx-alipay');\n\nlet outputPath = path.join(__dirname, '../../dist');\nlet inputDirPath = path.join(__dirname, '../../examples/miniprogram-demo/miniprogram');\n\nconst App = transformFramework();\n\nApp.use(\n    WechatPlugin, \n    {\n        entry: inputDirPath,\n        dist: outputPath + '/alipaymini-demo',\n        env: 'development'\n    })\n    .start();\n```\n\n## [谁在使用](https://github.com/ant-move/antmove/issues/1)\n\n### 微信小程序\n\n\u003e 这里展示的微信小程序为原小程序应用，下面的其它平台小程序为基于这些微信小程序转换得到。\n\n\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782950065567308.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782952846212329.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782953106003106.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782953317193007.jpg'\u003e\n\n### 支付宝小程序\n\n\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782958847436418.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782959106179161.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782959378977715.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782959600209087.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782960063558225.jpg'\u003e\n\n### 高德小程序\n\n\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782960342118999.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782960508762175.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782961458874630.jpg'\u003e\u003cimg width='150' src='https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/15782961717464794.jpg'\u003e\n\n\u003e 如果你的公司和产品使用了 [Antmove](https://ant-move.github.io/website/docs/readme.html)，欢迎到[这里](https://github.com/ant-move/antmove/issues/1)留言。\n\n## 贡献\n\n欢迎参与 Antmove 项目的开发建设和讨论。\n\u003e 提交 pull request 之前请先提 [Issue 讨论](https://github.com/ant-move/antmove/issues).\n\n## 协议\n[GPL](https://choosealicense.com/licenses/gpl-3.0/)\n\n## [联系](https://github.com/ant-move/Antmove/issues/23)\n\n* \u003cimg width='250' src='https://cache.amap.com/ecology/tool/antmove/web/assets/contact-dd.jpg'/\u003e\n* Email：amap-appx@service.autonavi.com\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fant-move%2FAntmove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fant-move%2FAntmove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fant-move%2FAntmove/lists"}