antmove
小程序转换器,基于支付宝/微信小程序转换为多端小程序,让小程序跨平台开发变得简单。
Last updated a day ago by amove .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install antmove 
SYNC missed versions from official npm registry.

指南

Antmove - 小程序转换器,基于支付宝/微信小程序转换为多端小程序,让小程序跨平台开发变得简单。

一键实现小程序转换迁徙,不再为重复开发而烦恼。

antmove structure

特性

  • 简单易使用,一键转换
  • 配套详细的编译时日志/运行时日志工具
  • 编译生成代码可读性强,可二次编程
  • 二次编译支持
  • 组件转换支持

文档

安装

VsCode 扩展安装

在 vscode 扩展中搜索 Antmove 下载安装 Antmove vscode 转换插件实现一键转换。

命令行安装

我们推荐使用 npm 或 yarn 的方式进行开发,不仅可在开发环境轻松调试,也可放心地在生产环境打包部署使用,享受整个生态圈和工具链带来的诸多好处。

  • 全局安装
$ npm install antmove -g

$ yarn global add antmove
  • 本地安装
$ npm install antmove --save

$ yarn add antmove

如果你的网络环境不佳,推荐使用 cnpm

快速开始

VsCode 扩展使用

  • 安装扩展(Antmove - antmove-vscode-plugin)

  • 在 VsCode 中打开要转换的项目

  • 打开 VsCode 命令面板

    • Mac: command + shift + p
    • Windows: ctrl + shift + p
  • 输入 Antmove

  • 运行 Antmove: Run antmove 命令

  • 运行如上命令后会给出一个弹窗,选择转换后生成代码存储目录

  • 转换完成

  • antmove-vscode-plugin

本插件依赖于 vscode 代码编辑器,安装了 vscode 的用户才能使用。

命令行使用

npm i -g antmove

通过 npm 或 yarn 全局安装才能使用如下命令行

  • antmove wx-alipay(使用前请将终端切换到需转换编译的微信小程序项目路径)
antmove wx-alipay -i ./ -o ./dist/alipay-app
  • antmove - 该命令更加灵活,可配置输出输出目录/编译模式等
antmove wx-alipay -i ./wechat-mini/project -o ./dist/alipay-mini/project --env development

如上的命令表示将 ./wechat-mini/project 微信小程序项目转换为支付宝小程序项目,转换到 ./dist/alipay-mini/project 目录 如果你不想输入参数,可以体验交互式的命令方式,执行 antmove 即可。

配置参数

  • --input,-i
    • 可选,编译源码目录,如果不传则是当前目录
  • --output,-o
    • 必传,编译输出目录
  • --env,-e
    • 可选(development/production),编译模式,生产模式代码会压缩,无编译日志及运行时日志

更多配置项可参考配置参数详情

Node.js 使用方式

示例

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();

谁在使用

微信小程序

这里展示的微信小程序为原小程序应用,下面的其它平台小程序为基于这些微信小程序转换得到。

支付宝小程序

高德小程序

如果你的公司和产品使用了 Antmove,欢迎到这里留言。

贡献

欢迎参与 Antmove 项目的开发建设和讨论。

提交 pull request 之前请先提 Issue 讨论.

协议

GPL

联系

  • Email:amap-appx@service.autonavi.com

Current Tags

  • 1.1.3                                ...           latest (a day ago)

85 Versions

  • 1.1.3                                ...           a day ago
  • 1.1.2                                ...           a day ago
  • 1.1.1                                ...           a day ago
  • 1.0.66                                ...           14 days ago
  • 1.0.64                                ...           21 days ago
  • 1.0.62                                ...           23 days ago
  • 1.0.61                                ...           a month ago
  • 1.0.60                                ...           2 months ago
  • 1.0.59                                ...           2 months ago
  • 1.0.58                                ...           2 months ago
  • 1.0.57                                ...           2 months ago
  • 1.0.56                                ...           2 months ago
  • 1.0.54                                ...           2 months ago
  • 1.0.53                                ...           3 months ago
  • 1.0.52                                ...           3 months ago
  • 1.0.51                                ...           3 months ago
  • 1.0.46                                ...           3 months ago
  • 1.0.45                                ...           4 months ago
  • 1.0.44                                ...           4 months ago
  • 1.0.43                                ...           4 months ago
  • 1.0.42                                ...           4 months ago
  • 1.0.41                                ...           4 months ago
  • 1.0.24                                ...           5 months ago
  • 1.0.23                                ...           6 months ago
  • 1.0.21                                ...           7 months ago
  • 1.0.20                                ...           8 months ago
  • 1.0.19                                ...           9 months ago
  • 1.0.15                                ...           9 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 0.2.26                                ...           a year ago
  • 0.2.25                                ...           a year ago
  • 0.2.24                                ...           a year ago
  • 0.2.23                                ...           a year ago
  • 0.2.21                                ...           a year ago
  • 0.2.20                                ...           a year ago
  • 0.2.19                                ...           a year ago
  • 0.2.18                                ...           a year ago
  • 0.2.17                                ...           a year ago
  • 0.2.16                                ...           a year ago
  • 0.2.15                                ...           a year ago
  • 0.2.14                                ...           a year ago
  • 0.2.13                                ...           a year ago
  • 0.2.12                                ...           a year ago
  • 0.2.11                                ...           a year ago
  • 0.2.10                                ...           a year ago
  • 0.2.9                                ...           a year ago
  • 0.2.8                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.1.22                                ...           a year ago
  • 0.1.13                                ...           a year ago
  • 0.1.12                                ...           a year ago
  • 0.1.11                                ...           a year ago
  • 0.1.10                                ...           a year ago
  • 0.1.9                                ...           a year ago
  • 0.1.8                                ...           a year ago
  • 0.1.7                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.0.23                                ...           a year ago
  • 0.0.22                                ...           a year ago
  • 0.0.21                                ...           a year ago
  • 0.0.20                                ...           a year ago
  • 0.0.19                                ...           a year ago
  • 0.0.18                                ...           a year ago
  • 0.0.17                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           a year ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 4
This Week 72
This Month 75
Last Day 60
Last Week 23
Last Month 138

Copyright 2014 - 2016 © taobao.org |